public void BubbleSortInterface_SortMinElementDescendArray_Axpected_ArgumentNullException() { int[][] inputArray = null; var comparer = new SortMinElementDescendArray(); Assert.Throws <ArgumentNullException>(() => BubbleSortAcrossInterface.BubbleSortInterface(inputArray, comparer)); }
public void BubbleSortInterface_SortMinElementDescendArray_With_Valid_Data() { var inputArray = HelperSort.GetJaggedArray(); var comparer = new SortMinElementDescendArray(); BubbleSortAcrossInterface.BubbleSortInterface(inputArray, comparer); var outputMinElementRowArray = HelperSort.SortMinElementDescendHelper(inputArray).Item2; Assert.IsTrue(HelperSort.SortMinElementDescendHelper(inputArray).Item1); }