public void MSMergeSort_UnsortedArray_SortedArray() { int[] actual = { 3, 5, 8, 2, 4, 1, 6, 7 }; SortLib.QuickSort(actual); int[] expected = { 1, 2, 3, 4, 5, 6, 7, 8 }; CollectionAssert.Equals(expected, actual); }
public void NUNITQuickSort_UnsortedArray_SortedArray(int[] array, int[] expected) { SortLib.QuickSort(array); bool result = array.SequenceEqual <int>(expected); Assert.True(result); }