public void Test3() { TestClassSumDown obj = new TestClassSumDown(); int[][] array = new int[][] { new[] { 1, 2, 3, 4 }, new[] { 2, 3, 4 }, null, new[] { 5, 5, 55555 }, new[] { 0, 5, 6, 7, 0, 4 }, null }; MatrixFuncInterface.BubbleSort(array, obj); Assert.AreEqual(new int[][] { new[] { 5, 5, 55555 }, new[] { 0, 5, 6, 7, 0, 4 }, new[] { 1, 2, 3, 4 }, new[] { 2, 3, 4 }, null, null }, array); }
public void Test2() { TestClassSumDown obj = new TestClassSumDown(); int[][] array = new int[][] { new[] { 1, 2, 3, 4 }, new[] { 2, 3, 4 }, new[] { 4, 5, 6, 7, 432, 4 }, new[] { 5, 5, 55555 }, new[] { 0, 5, 6, 7, 0, 4 } }; MatrixFunc.BubbleSort(obj, array); Assert.AreEqual(new int[][] { new[] { 5, 5, 55555 }, new[] { 4, 5, 6, 7, 432, 4 }, new[] { 0, 5, 6, 7, 0, 4 }, new[] { 1, 2, 3, 4 }, new[] { 2, 3, 4 } }, array); }