Skip to content

Commit

Permalink
- fixes unit tests for serialization name normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Oct 5, 2023
1 parent efcf9cf commit 3570db5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public CodePropertyWriterTests()
Name = TypeName,
TypeDefinition = derivedClass
},
SerializationName = "propertyName",
};
parentClass.AddProperty(property, new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ public async Task WriteIndexerBody()
},
new object[]
{
new CodeProperty { Name = "DOB", Type = new CodeType { Name = "DateTimeOffset" }, Access = AccessModifier.Private, Kind = CodePropertyKind.Custom },
new CodeProperty { Name = "DOB", Type = new CodeType { Name = "DateTimeOffset" }, Access = AccessModifier.Private, Kind = CodePropertyKind.Custom, SerializationName = "dOB" },
"'dOB' => fn(ParseNode $n) => $o->setDOB($n->getDateTimeValue()),"
},
new object[]
Expand Down

0 comments on commit 3570db5

Please sign in to comment.