示例#1
0
        public void BubbleSortTestDesMin()
        {
            int[,] expected = new int[, ] {
                { 5, 3, 7 }, { 1, 2, 3 }, { 4, 0, 6 }
            };

            int[,] res = Task2.BubbleSort(testedArray, Task2.Orders.Descending, Task2.Types.MinOfRaw);

            CollectionAssert.AreEqual(expected, res);
        }
示例#2
0
        public void BubbleSortTestAscSum()
        {
            int[,] expected = new int[, ] {
                { 1, 2, 3 }, { 4, 0, 6 }, { 5, 3, 7 }
            };

            int[,] res = Task2.BubbleSort(testedArray, Task2.Orders.Ascending, Task2.Types.SumOfElementsOfRaw);

            CollectionAssert.AreEqual(expected, res);
        }