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