Beispiel #1
0
        public void TestAllChanged()
        {
            DiffResult <int> result = new DiffResult <int>();

            int[] a = { 1, 2, 3, 4, 5 };
            int[] b = { 6, 7, 8 };
            result.AddNotEqual(a, b);
            TestDiff(a, b, result);
        }
Beispiel #2
0
        public void TestMultipleChanges()
        {
            DiffResult <int> result = new DiffResult <int>();

            int[] a = { 1, 2, 3, 4, 5 };
            int[] b = { 1, 2, 6, 2, 3, 7, 5 };
            result.AddEqual(1, 2);
            result.AddB(6, 2);
            result.AddEqual(3);
            result.AddNotEqual(new[] { 4 }, new[] { 7 });
            result.AddEqual(5);
            TestDiff(a, b, result);
        }