I have two objects in my unit test, the actual and expected object. All properties on the object method are the exact same and if I run the following test:
Assert.AreEqual( expectedObject.Property1, actualObject.Property1);
the result passes as expected. However, when I try to run the following test it fails:
Assert.AreEqual (expectedObject, actualObject);
What am I missing? Can two objects not be compared and do I have to do a check on each property?