public void BubbleSorterInterfaceLockTests(int[][] sortedArray, BublleSorterInterfaceLock <int[]> .Compare compare) { var array = (int[][])_array.Clone(); var bubbleSorter = new BublleSorterInterfaceLock <int[]>(); bubbleSorter.Sort(array, compare); Assert.AreEqual(sortedArray, array); }
public InterfaceComparerAdapter(BublleSorterInterfaceLock <T> .Compare comparator) { _comparator = comparator; }