public void CompareSameObjects() { var obj = new NonBuiltInEmptyClass(); var result = comparer.AreEqual(obj, obj); Assert.IsTrue(result.AreEqual, "The objects should be equal as they are the actual same one."); }
public void CompareNullWithAnObject() { var object1 = new NonBuiltInEmptyClass(); var result = comparer.AreEqual(object1, null); Assert.IsFalse(result.AreEqual, "Object reference and null are not equal."); }
public void CompareEmptyObjects() { var object1 = new NonBuiltInEmptyClass(); var object2 = new NonBuiltInEmptyClass(); var result = comparer.AreEqual(object1, object2); Assert.IsTrue(result.AreEqual, "The objects are not equal, despite being empty."); }