public void SortArrayUsingQuickSortTest(int[] initial, int[] expected) { // Arrange SortingClass class1 = new SortingClass(); // Act int[] actual = class1.QuickSort(initial); // Assert Assert.AreEqual(expected, actual); }
public void EmptyArrayQuickSortTest() { SortingClass class1 = new SortingClass(); Assert.Throws <ArgumentException>(() => class1.QuickSort(new int[] { })); }
public void NullArgumentQuickSortTest() { SortingClass class1 = new SortingClass(); Assert.Throws <ArgumentNullException>(() => class1.QuickSort(null)); }