public void SortWithAuxVar(int[] data, int[] expected) { var sort = new Algorithms.Sorting.QuickSort(); var actual = sort.SortWithAux(data); CollectionAssert.AreEqual(expected, actual); }
public void CompareMethods(int[] data) { var sort = new Algorithms.Sorting.QuickSort(); var xor = sort.SortWithXOR(data); var aux = sort.SortWithAux(data); CollectionAssert.AreEqual(xor, aux); }