Add tests for serialization of special property names (#7544)

* add test for serialization of special propery name

* comment out os dependent test
This commit is contained in:
William Cheng 2020-10-01 20:38:01 +08:00 committed by GitHub
parent b7f5265ae5
commit 626481bb07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,11 @@ namespace Org.OpenAPITools.Test
[Fact]
public void SpecialPropertyNameTest()
{
// TODO unit test for the property 'SpecialPropertyName'
SpecialModelName s = new SpecialModelName();
s.SpecialPropertyName = 123l;
Assert.Equal("{\"$special[property.name]\":123}", JsonConvert.SerializeObject(s));
// comment out the following as the result is OS-dependent
//Assert.Equal("{\"$special[property.name]\":123}", s.ToJson());
}
}