Exemple #1
0
        public void ShouldDetect_NoDifferences_ComplexObject()
        {
            var date = new DateTime(2018, 12, 1, 5, 1, 30);
            var obj1 = new ComplexObject(100, 200, date, "Test user");
            var obj2 = new ComplexObject(100, 200, date, "Test user");

            obj1.TestEnum = TestEnum.Value1;
            obj1.AddInt(5000);
            obj1.AddInt(6000);
            obj1.AddInt(7000);

            obj2.TestEnum = TestEnum.Value1;
            obj2.AddInt(5000);
            obj2.AddInt(6000);
            obj2.AddInt(7000);

            var diff = AnyDiff.Diff(obj1, obj2);

            Assert.AreEqual(0, diff.Count);
        }