public void BinaryInsertionSortStrTest() { string[] array = { "zoe", "alice", "juan", "john", "ben", "shirley", "cate", "luis" }; InsertionSort <string> .BinaryInsertion(array); for (int i = 0; i < array.Length; i++) { Assert.Equal(expectStr[i], array[i]); } }
public void BinaryInsertionSortIntTest() { int[] array = { 10, 0, 3, 11, 8, 9, 1, 12, 5, 2, 4, 6, 7 }; InsertionSort <int> .BinaryInsertion(array); for (int i = 0; i < array.Length; i++) { Assert.Equal(expectInt[i], array[i]); } }