Example #1
0
 public void ShouldIgnoreMissingPropertiesForDeserialization()
 {
     JsonAssert.DeserializesTo("{\"$type\":\"" + TestTargetTypeName + "\"}", new SerializationTestTarget());
 }
Example #2
0
 public void ShouldDeserializeNull()
 {
     JsonAssert.DeserializesTo("null", (object)null);
 }
Example #3
0
 public void ShouldNotDeserializeNullProperties()
 {
     JsonAssert.DeserializesTo(
         "{\"$type\":\"" + TestTargetTypeName + "\",\"Id\":null}",
         new SerializationTestTarget());
 }
Example #4
0
 public void ShouldSerializeNull()
 {
     JsonAssert.SerializesTo((object)null, "null");
 }