Example #1
0
        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.");
        }
Example #2
0
        public void CompareNullWithAnObject()
        {
            var object1 = new NonBuiltInEmptyClass();

            var result = comparer.AreEqual(object1, null);

            Assert.IsFalse(result.AreEqual, "Object reference and null are not equal.");
        }
Example #3
0
        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.");
        }
Example #4
0
        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.");
        }
Example #5
0
        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.");
        }
Example #6
0
        public void CompareNullWithAnObject()
        {
            var object1 = new NonBuiltInEmptyClass();

            var result = comparer.AreEqual(object1, null);

            Assert.IsFalse(result.AreEqual, "Object reference and null are not equal.");
        }