public void testReversedMergesortWithMeanValues()
 {
     double[] array = new double[] { 1.0, -0.0, -1.1, 2.0, 3.0, 0.0, 4.0, -0.0, 0.0 };
     shuffleArray(array);
     ArraySorter.reversedMergesort(array);
     assertDescendingOrder(array);
 }
        public void testReversedMergesort()
        {
            for (int k = 1; k <= 16 * 8096; k *= 2)
            {
                // create random array
                double[] array = new double[k];
                for (int i = 0; i < array.Length; i++)
                {
                    array[i] = random.NextDouble();
                }


                ArraySorter.reversedMergesort(array);
                assertDescendingOrder(array);
            }
        }