public void MaxValueSort_NegativeNumbers()
        {
            int[] first = new[] { -8, -2, -3, -10, -5 };
            int[] second = new[] { -5, -4, -13, -7, -9 };
            int[] third = new[] { -14, -12, -3, -24 };
            int[][] array = new[] { first, second, third };

            MaxValueSort comparer = new MaxValueSort();

            Sorter.Sort(array, comparer);

            int[][] result = new[] { third, second, first };

            Assert.IsTrue(CompareArrays(result, array));
        }
        public void MaxValueSort_MixedNumbers()
        {
            int[] first = new[] { -1, 2, -3, 10, -5 };
            int[] second = new[] { 5, -4, -13, 2, 1 };
            int[] third = new[] { -1, 12, -3, 34 };
            int[][] array = new[] { third, second, first };

            MaxValueSort comparer = new MaxValueSort();

            Sorter.Sort(array, comparer);

            int[][] result = new[] { third, second, first };

            Assert.IsTrue(CompareArrays(result, array));
        }
        public void MaxValueSort_PositiveNumbers()
        {
            int[] first = new[] {1, 2, 3, 10, 5};
            int[] second = new[] {5, 4, 13, 2, 1};
            int[] third = new[] {1, 12, 3, 4};
            int[][] array = new[] {first, second, third};

            MaxValueSort comparer = new MaxValueSort();

            Sorter.Sort(array, comparer);

            int[][] result = new[] {second, third, first};

            Assert.IsTrue(CompareArrays(result, array));
        }