ShouldBeEquivalentTo should not compare types
Edgaras91 opened this issue · comments
Edgaras commented
ShouldBeEquivalentTo is throwing an exception when Object A should be of the type of Object B.
What I am actually asserting is type A against type B:A (A is the base)
I want to assert all of the A properties between the two objects if they have the same values.
I believe Fluent Assertion does not compare types on its "Equivalent" extension.
I think Equivalent should check only the properties between the two, whereas ShouldBeSameAs can compare the exact types too.
Let me know if there is a solution to this that I'm not aware of or explain the difference between ShouldBeSameAs vs ShouldBeEquivalentTo