forked from loafle/openapi-generator-original
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:
parent
b7f5265ae5
commit
626481bb07
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user