-Add support for sharing a static cache for contract resolvers inheriting from DefaultControlResolver
-Correct error message when casting non-JValue to a privative type
This commit is contained in:
@@ -65,6 +65,14 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
Assert.AreEqual(person.BirthDate, deserializedPerson.BirthDate);
|
||||
Assert.AreEqual(person.LastModified, deserializedPerson.LastModified);
|
||||
Assert.AreEqual(person.Name, deserializedPerson.Name);
|
||||
|
||||
json = JsonConvert.SerializeObject(person, Formatting.Indented);
|
||||
Assert.AreEqual(@"{
|
||||
""Name"": ""Name!"",
|
||||
""BirthDate"": ""\/Date(974764544000)\/"",
|
||||
""LastModified"": ""\/Date(974764544000)\/""
|
||||
}", json);
|
||||
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user