MSTest: CollectionAssert.AreEquivalent failed. The expected collection contains 1 occurrence(s) of

You are absolutely right. Unless you provide something like an IEqualityComparer<MyPerson> or implement MyPerson.Equals(), the two MyPerson objects will be compared with object.Equals, just like any other object. Since the objects are different, the Assert will fail.

Leave a Comment

techhipbettruvabetnorabahisbahis forumuedusedueduseduseduseduedueduseduedu