Example #1
0
 public void SelectionSort()
 {
     int[] array = { 3, 4, 5, 6, 2 };
     Lib.Sorting.SelectionSort.Sort(array);
     AssertSorting.AssertAscendingOrder(array.Reverse().ToArray());
 }
Example #2
0
 public void InsertionSort()
 {
     int[] array = { 3, 4, 5, 6, 2 };
     Lib.Sorting.InsertionSort.Sort(array);
     AssertSorting.AssertAscendingOrder(array);
 }