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); }
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); }