public void should_serialize_null() { var instance = new ClassWithTypedStringValueLowerCaseWithoutAttribute(); var json = instance.ToJson(); Assert.AreEqual("{ \"Value\" : null }", json); }
public void should_serialize_lowercase() { var instance = new ClassWithTypedStringValueLowerCaseWithoutAttribute { Value = new TypedStringValueWithoutAttributeLowerCase("abc_123") }; var json = instance.ToJson(); Assert.AreEqual("{ \"Value\" : \"abc_123\" }", json); }