public void TestOne() { List <Tuple <int, int> > tempList = BinarySearchIceCreamParlor.Solution(new string[] { "2", "4", "5", "1 4 5 3 2", "4", "4", "2 2 4 3" }); Assert.Contains(new Tuple <int, int>(1, 4), tempList); Assert.Contains(new Tuple <int, int>(1, 2), tempList); }
public void TestBigger() { List <Tuple <int, int> > tempList = BinarySearchIceCreamParlor.Solution(new string[] { "1", "295", "17", "678 227 764 37 956 982 118 212 177 597 519 968 866 121 771 343 561" }); Assert.Contains(new Tuple <int, int>(7, 9), tempList); List <Tuple <int, int> > tempList2 = BinarySearchIceCreamParlor.Solution(new string[] { "1", "100", "3", "5 75 25" }); Assert.Contains(new Tuple <int, int>(2, 3), tempList2); }