public void StringBottomupTest() { char[] array = { 'm', 'n', 'a', 'k', 'c', 'd', 'g', 'j', 'b', 'l', 'f', 'i', 'e', 'h' }; MergeSort <char> .BottomUpSort(array); for (int i = 0; i < array.Length; i++) { Assert.Equal(array[i], expectChar[i]); } }
public void IntBottomupTest() { int[] array = { 10, 0, 3, 11, 8, 9, 1, 12, 5, 2, 4, 6, 7 }; MergeSort <int> .BottomUpSort(array); for (int i = 0; i < array.Length; i++) { Assert.Equal(array[i], expectInt[i]); } }