public void TestSearchForRange2() { int[] input = new int[] { 1, 2, 3, 4, 7, 9 }; SearchForRange rangeFinder = new SearchForRange(); var results = rangeFinder.SearchRange(input, 8); Assert.AreEqual(-1, results[0]); Assert.AreEqual(-1, results[1]); }
public void TestSearchForRange7() { int[] input = new int[] { 4, 4 }; SearchForRange rangeFinder = new SearchForRange(); var results = rangeFinder.SearchRange(input, 4); Assert.AreEqual(0, results[0]); Assert.AreEqual(1, results[1]); }