public void TestNullable_Fail_Null() { int?a = null; int?b = 6; Assert.AreEqual(1, DeepComparer.Compare(a, b).Count()); }
public void TestNullable_Pass() { int?a = 6; int?b = 6; Assert.AreEqual(0, DeepComparer.Compare(a, b).Count()); }
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()); }
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()); }
public void TestPrimitive_Fail() { Assert.AreEqual(1, DeepComparer.Compare(7, 6).Count()); }
public void TestPrimitive_Pass() { Assert.AreEqual(0, DeepComparer.Compare(6, 6).Count()); }
public void TestNonNulls() { Assert.AreEqual(1, DeepComparer.Compare <string>(null, "").Count()); }
public void TestNulls() { Assert.AreEqual(0, DeepComparer.Compare <string>(null, null).Count()); }