public void TestParQuickSort1() { Double[] a = RandomAux.Randomize(1000); (new ParQuickSort <Double> ()).Sort(a); for (int j = 1; j < a.Length; ++j) { Assert.IsTrue(a[j - 1] < a[j]); } }
public void TestQuickSort2() { for (int i = 0; i < 1000; ++i) { Double[] a = RandomAux.Randomize(1000); (new QuickSort <Double> ()).Sort(a); for (int j = 1; j < a.Length; ++j) { Assert.IsTrue(a[j - 1] < a[j]); } } }