How to exclude a JSON property from comparison in FluentAssertions.Json
?
JToken token, expectedJson;
token.Should().BeEquivalentTo(expectedJson);
{
"property1":"value1",
"property2":"value2",
"property3":"value3"
}
I want to exclude property with name "property2" from the comparison. How is it possible?