C# Unit Testing object equality without implementing .Equals
Recently I was trying to write a unit test testing to see if one object was equal to another. The objects themselves were simple, just a collection of built-in types, so it should be easy to test. .Equals However, since I didn’t implement .Equals, C# doesn’t natively know how to check if the objects are … [Read more…]