public void BubbleSortInterface_SortMaxElementAscendArray_With_Valid_Data() { var inputArray = HelperSort.GetJaggedArray(); var comparer = new SortMaxElementAscendArray(); BubbleSortAcrossInterface.BubbleSortInterface(inputArray, comparer); var outputMaxElementRowArray = HelperSort.SortMaxElementAscendHelper(inputArray).Item2; Assert.IsTrue(HelperSort.SortMaxElementAscendHelper(inputArray).Item1); }
public void BubbleSortDelegate_SortMaxElementAscendArray_With_Valid_Data() { var inputArray = HelperSort.GetJaggedArray(); var comparer = new SortMaxElementAscendArrayWithoutInterface(); Func <int[], int[], int> delegatInput = comparer.Compare; BubbleSortAcrossDelegate.BubbleSortDelegate(inputArray, delegatInput); var outputMaxElementRowArray = HelperSort.SortMaxElementAscendHelper(inputArray).Item2; Assert.IsTrue(HelperSort.SortMaxElementAscendHelper(inputArray).Item1); }