public void TestArraysEmpty() { int[] a = new int[] {}; int[] b = new int[] {}; bool r = AreTheySame.comp(a, b); // True Assert.AreEqual(true, r); }
public void TestBad() { int[] a = new int[] { 132, 144, 19, 161, 19, 144, 19, 11 }; int[] b = new int[] { 11 * 11, 121 * 121, 144 * 144, 19 * 19, 161 * 161, 19 * 19, 144 * 144, 19 * 19 }; bool r = AreTheySame.comp(a, b); // True Assert.AreEqual(false, r); }
public void TestArraysNull() { int[] a = null; int[] b = null; bool r = AreTheySame.comp(a, b); // True Assert.AreEqual(false, r); }