Beispiel #1
0
        public void Test4()
        {
            int[] array = new int[Max];

            Random r = new Random();

            Parallel.For(0, array.Length, (i) => array[i] = r.Next());

            MergeSort <int> c = new MergeSort <int>(3, array);

            int[] tmp = c.Start();

            Assert.IsTrue(Utilities.CheckSort(tmp));
        }