Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shemogumbe committed Oct 21, 2024
1 parent b0ac2ba commit 29cf0cf
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -792,12 +792,11 @@ public void WritesInheritedDeSerializerBody()
Assert.DoesNotContain("defined_in_parent", result, StringComparison.OrdinalIgnoreCase);
}
[Fact]

public void Writes_UnionOfPrimitiveValues_FactoryFunctionAsync()
public void WritesFactoryMethodForPrimitiveTypes()
{
var result = tw.ToString();
Assert.Contains("return parseNode?.getNumberValue() ?? parseNode?.getStringValue();", result);
AssertExtensions.CurlyBracesAreClosed(result, 1);
Assert.Contains("return numberValue", result);
Assert.Contains("return stringValue", result);
}
[Fact]
public void WritesUnionDeSerializerBody()
Expand Down

0 comments on commit 29cf0cf

Please sign in to comment.