예제 #1
0
        public void TestNullable_Fail_Null()
        {
            int?a = null;
            int?b = 6;

            Assert.AreEqual(1, DeepComparer.Compare(a, b).Count());
        }
예제 #2
0
        public void TestNullable_Pass()
        {
            int?a = 6;
            int?b = 6;

            Assert.AreEqual(0, DeepComparer.Compare(a, b).Count());
        }
예제 #3
0
        public void TestClass_Fail()
        {
            var a    = new HttpResponseMessage();
            var b    = new HttpResponseMessage(HttpStatusCode.Continue);
            var list = DeepComparer.Compare(a, b);

            foreach (var s in list)
            {
                Console.WriteLine(s);
            }
            Assert.AreEqual(3, list.Count());
        }
예제 #4
0
        public void TestClass_Pass()
        {
            var a    = new HttpResponseMessage();
            var b    = new HttpResponseMessage();
            var list = DeepComparer.Compare(a, b);

            foreach (var s in list)
            {
                Console.WriteLine(s);
            }

            Assert.AreEqual(0, list.Count());
        }
예제 #5
0
 public void TestPrimitive_Fail()
 {
     Assert.AreEqual(1, DeepComparer.Compare(7, 6).Count());
 }
예제 #6
0
 public void TestPrimitive_Pass()
 {
     Assert.AreEqual(0, DeepComparer.Compare(6, 6).Count());
 }
예제 #7
0
 public void TestNonNulls()
 {
     Assert.AreEqual(1, DeepComparer.Compare <string>(null, "").Count());
 }
예제 #8
0
 public void TestNulls()
 {
     Assert.AreEqual(0, DeepComparer.Compare <string>(null, null).Count());
 }