public void Test() { InsertionSort <Int32> sort = new InsertionSort <Int32>(); Int32[] array = SortData.CreateUnsortedArray(); sort.Sort(array); Assert.True(SortData.VerifyArrayIsSorted(array)); }
public void Test_TopDown() { MergeSort <Int32> sort = new MergeSort <Int32>(MergeSortType.TopDown); Int32[] array = SortData.CreateUnsortedArray(); sort.Sort(array); Assert.True(SortData.VerifyArrayIsSorted(array)); }