Writing UnitTests with MSTest I want to assert the equality of a return value vs. the one I'm expecting.
Expected type is a custom type that does not implement the IComparable
interface nor the IEquatable
interface, thats why I want to give Assert.AreEqual
a possibility to compare the two objects.
I am aware that this possibility exists in CollectionAssert.AreEqual
. This method however requires two ojects that inherit ICollection
which my objects do not.
Why does Assert.AreEqual
not allow me to specify a custom comparer? Am I missing something?