public void CheckQuickSortOnEmpty() => Assert.Throws <ArgumentException>(() => SortingMethods.Quicksort(new int[] { }));
public void QuickSortTest() { int[] array = { 24, 16, 54, -4, 3, 47, 93, 101, 255, -34, -2019 }; SortingMethods.Quicksort(array); Assert.AreEqual(new int[] { -2019, -34, -4, 3, 16, 24, 47, 54, 93, 101, 255 }, array); }
public void CheckQuickSortOnNull() => Assert.Throws <ArgumentNullException>(() => SortingMethods.Quicksort(null));