Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/Newtonsoft.Json.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamesNK <james@newtonking.com>2012-01-22 05:51:01 +0400
committerJamesNK <james@newtonking.com>2012-01-22 05:51:01 +0400
commit58d51cda5c3ee6e3fd5c3b826ae15e65423d9c31 (patch)
tree1373c96cb07a98c7ca74f22f986845c4af894bfb /Src/Newtonsoft.Json.Tests/Serialization
parentcd424a7bc5e08bb3a9ae1266e744ee08c57dbbf9 (diff)
-Added ReadAsInt32 to JsonReader
-Improved performance by using an enum rather than a type check to test contract type
Diffstat (limited to 'Src/Newtonsoft.Json.Tests/Serialization')
-rw-r--r--Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs b/Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs
index 13b8783..b0fe562 100644
--- a/Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs
+++ b/Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs
@@ -1931,7 +1931,7 @@ keyword such as type of business.""
}
[Test]
- [ExpectedException(typeof(JsonSerializationException), ExpectedMessage = @"Error converting value """" to type 'System.Int32'. Line 1, position 15.")]
+ [ExpectedException(typeof(JsonReaderException), ExpectedMessage = @"Could not convert string to integer: . Line 1, position 15.")]
public void DeserializeEnsureTypeEmptyStringToIntError()
{
JsonConvert.DeserializeObject<MemoryStream>("{ReadTimeout:''}");