public void verify_null_stringValue_serialization() { var instance = new ClassWithDocumentFormat { Value = new DocumentFormat2(null) }; var json = instance.ToJson(); Assert.AreEqual("{ \"Value\" : null }", json); }
public void verify_basic_serialization() { var instance = new ClassWithDocumentFormat { Value = new DocumentFormat2("Sample_1") }; var json = instance.ToJson(); Assert.AreEqual("{ \"Value\" : \"Sample_1\" }", json); }
public void verify_null_stringValue_serialization() { var instance = new ClassWithDocumentFormat { Value = new DocumentFormat2(null) }; var json = instance.ToJson(); Assert.AreEqual("{ \"Value\" : null }", json); }
public void verify_basic_serialization() { var instance = new ClassWithDocumentFormat { Value = new DocumentFormat2("Sample_1") }; var json = instance.ToJson(); Assert.AreEqual("{ \"Value\" : \"Sample_1\" }", json); }