public void HeapSort(int[] A) { var expected = A.Clone() as int[]; Array.Sort(expected); var heapsort = new Algorithms.Sorting.HeapSort(); var actual = heapsort.Sort(A); CollectionAssert.AreEqual(expected, actual); }
public static IEnumerable <object[]> largeData() { var solution = new Algorithms.Sorting.HeapSort(); return(solution.Data()); }