How to exclude property from BeEquivalentTo() globally #2552
-
Hello! I have a scenario in which I want to exclude a property when using BeEquivalentTo() globally. Is it possible? Right now I'm calling the Excluding every time that I have to verify this Type. object.Should().BeEquivalentTo(expectedObject, ctx => ctx.Excluding(p => p.Property)); Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
dennisdoomen
Jan 20, 2024
Replies: 1 comment
-
Yes, the practical all non-generic options you pass to |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LucasRufo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, the practical all non-generic options you pass to
BeEquivalentTo
can also be passed toAssertOptions.AssertEquivalencyUsing