public void TestCompareClasses2() { FooClass c1 = new FooClass(); FooClass c2 = new FooClass(); c1.i1 = c2.i1 = 2; c1.i2 = c2.i2 = 265465; c1.ii1 = c2.ii1 = 47563846758376528L; c1.ii2 = c2.ii2 = 4562523256235645653L; c1.s1 = c2.s1 = null; c1.s2 = c2.s2 = null; Assert.AreEqual(true, CommonUtilities.CompareClasses(c1, c2)); }
public void TestCompareClasses1() { FooClass c1 = new FooClass(); FooClass c2 = new FooClass(); c1.i1 = c2.i1 = 2; c1.i2 = c2.i2 = 265465; c1.ii1 = c2.ii1 = 47563846758376528L; c1.ii2 = c2.ii2 = 4562523256235645653L; c1.s1 = c2.s1 = "foo bar test"; c1.s2 = c2.s2 = "fdkjhgkdfsghskdjfhgkusziwu.lerg"; Assert.AreEqual(true, CommonUtilities.CompareClasses(c1, c2)); }