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