Пример #1
0
        public void NullValuesCanBeDiffed()
        {
            var classA = new ClassA(null, "Test");
            var classB = new ClassB(null, "Test");

            var diff = classA.DiffObjects(classB);

            Assert.Empty(diff);
        }
Пример #2
0
        public void NullValueInSourceCanBeDiffed()
        {
            var classA = new ClassA(null, "Test");
            var classB = new ClassB(1, "Test");

            var diff = classA.DiffObjects(classB);

            Assert.Single(diff);
        }
Пример #3
0
        public void WrongTypeInTargetCanBeDiffed()
        {
            var classA = new ClassA(null, "Test");
            var classB = new ClassAWithWrongPropType(10, "Test");

            var diff = classA.DiffObjects(classB);

            Assert.Single(diff);
        }