public void SortInputMatrixBySmallestElementAscending() { var sortingStrategy = new SortingStrategy(); sortingStrategy.MatrixSortStrategy = new MatrixSortByMinElement(); bool descending = false; int[,] inputMatrix = { { 75, 19, 45 }, { 49, 52, 78 }, { 81, 6, 40 } }; int[,] actual = inputMatrix; int row = 3; int column = 3; int[] indexes = MatrixHelper.MatrixIndexes(inputMatrix, row, column); actual = sortingStrategy.ExecuteSort(inputMatrix, row, column, indexes, descending); int[,] expected = { { 81, 6, 40 }, { 75, 19, 45 }, { 49, 52, 78 } }; CollectionAssert.AreEqual(expected, actual, "{0} != {1}", expected, actual); }