This commit is contained in:
James Newton-King
2018-02-17 18:21:21 +13:00
parent 73203653ba
commit ac17463d05
2 changed files with 4 additions and 2 deletions
@@ -62,7 +62,8 @@ namespace Newtonsoft.Json.Tests.JsonTextReaderTests
JValue token = new JValue(long.MaxValue);
await ExceptionAssert.ThrowsAsync<JsonReaderException>(
() => token.CreateReader().ReadAsInt32Async()
() => token.CreateReader().ReadAsInt32Async(),
"Could not convert to integer: 9223372036854775807. Path ''."
);
}
@@ -67,7 +67,8 @@ namespace Newtonsoft.Json.Tests.JsonTextReaderTests
JValue token = new JValue(long.MaxValue);
ExceptionAssert.Throws<JsonReaderException>(
() => token.CreateReader().ReadAsInt32()
() => token.CreateReader().ReadAsInt32(),
"Could not convert to integer: 9223372036854775807. Path ''."
);
}