public void BubbleSortInterface_SortSummElementAscendArray_With_Valid_Data() { var inputArray = HelperSort.GetJaggedArray(); var comparer = new SortSummElementAscendArray(); BubbleSortAcrossInterface.BubbleSortInterface(inputArray, comparer); var outputSummRowArray = HelperSort.SortSummAscendHelper(inputArray).Item2; Assert.IsTrue(HelperSort.SortSummAscendHelper(inputArray).Item1); }
public void BubbleSortDelegate_SortSummElementAscendArray_With_Valid_Data() { var inputArray = HelperSort.GetJaggedArray(); var comparer = new SortSummElementAscendArrayWithoutInterface(); Func <int[], int[], int> delegatInput = comparer.Compare; BubbleSortAcrossDelegate.BubbleSortDelegate(inputArray, delegatInput); var outputSummRowArray = HelperSort.SortSummAscendHelper(inputArray).Item2; Assert.IsTrue(HelperSort.SortSummAscendHelper(inputArray).Item1); }