public void tGeneralLower() { int tElement = 4; Mixed.BSearchInsertion(ref tListLower, tElement); List <int> tVal = new List <int>() { 0, 1, 2, 3, 3, 4, 6 }; CollectionAssert.AreEqual((List <int>)tListLower, tVal); }
public void tBeginningOfList() { int tElement = -1; Mixed.BSearchInsertion(ref tList, tElement); List <int> tVal = new List <int>() { -1, 0, 1, 2, 3, 5, 6 }; CollectionAssert.AreEqual((List <int>)tList, tVal); }
public void tEndOfList() { int tElement = 7; Mixed.BSearchInsertion(ref tList, tElement); List <int> tVal = new List <int>() { 0, 1, 2, 3, 5, 6, 7 }; CollectionAssert.AreEqual((List <int>)tList, tVal); }