Describe the bug
When verifying a class with a boolean property, it seems that property always shows up in the result file, even when the value is false and DefaultValueHandling is set to Ignore.
Am I missing a way to ignore them or is this a bug?
Minimal Repro
public class Tests
{
public class Example
{
public bool Bool;
public string Content = "yes";
public string NoContent;
public int Num;
public char Char;
public double Double;
}
[Fact]
public async Task Test()
{
// Arrange
await Verify(new Example())
.AddExtraSettings(x => x.DefaultValueHandling = Argon.DefaultValueHandling.Ignore);
}
}
Expected:
Actual:
{
Bool: false,
Content: yes,
Char:
}
Describe the bug
When verifying a class with a boolean property, it seems that property always shows up in the result file, even when the value is false and DefaultValueHandling is set to Ignore.
Am I missing a way to ignore them or is this a bug?
Minimal Repro
Expected:
Actual: