public void TestLastMissingElement() { int[] A = { 1, 2, 3 }; int result = MissingElementFinder.Find(A); Assert.AreEqual(result, 4); }
public void TestFirstMissingElement() { int[] A = { 2, 3, 4 }; int result = MissingElementFinder.Find(A); Assert.AreEqual(result, 1); }
public void TestMissingElementSingleElement() { int[] A = { 2 }; int result = MissingElementFinder.Find(A); Assert.AreEqual(result, 1); int[] B = { 1 }; result = MissingElementFinder.Find(B); Assert.AreEqual(result, 2); }