public void QuickSort_ReturnsEmptyArray_WhenInputArrayIsEmpty() { long[] testArray = { }; var result = QuickSortFunctions.QuickSort(testArray); Assert.AreEqual(new long[] { }, result); }
public void QuickSort_ThrowsNullException_WhenInputArrayIsNull() { long[] testArray = null; Assert.That(() => QuickSortFunctions.QuickSort(testArray), Throws.ArgumentNullException); }
public void QuickSort_ReturnsSortedArray_WhenInputArrayIsValid(long[] inputArray, long[] expectedResult) { var result = QuickSortFunctions.QuickSort(inputArray); Assert.AreEqual(expectedResult, result); }