Beispiel #1
0
        public void IsEqualTest()
        {
            object obj0 = null;
            var    obj1 = new Person()
            {
                name = "Rudy", adres = "Profeinthovenstraat"
            };
            var obj2 = new Person()
            {
                name = "Rudy", adres = "Profeinthovenstraat"
            };
            var obj3 = new Person()
            {
                name = "Rudy", adres = "Profeinth0venstraat"
            };

            Assert.IsTrue(obj0.IsEqual(obj0), $"obj0 not equal.");
            Assert.IsTrue(obj1.IsEqual(obj2), $"object are not equal.");
            Assert.IsTrue(!obj1.IsEqual(obj3), $"object are equal.");
        }