public void Test1() { int[] row1 = { 1, 1, 1, 1 }; int[] row2 = { 2, 2, 2, 1 }; int[] row3 = { 3, 3, 1, 2 }; int[] row4 = { 3, 0, 3, 1 }; int[][] matrix = { row1, row2, row3, row4 }; int[] testRow1 = { 1, 0, 1, 1 }; int[] testRow2 = { 2, 0, 2, 1 }; int[] testRow3 = { 3, 0, 1, 2 }; int[] testRow4 = { 0, 0, 0, 0 }; int[][] testMatrix = { testRow1, testRow2, testRow3, testRow4 }; Assert.AreEqual(testMatrix, zeroMatrix.Zero(matrix)); }
public void Zero(int[,] input, int[,] expected) { ZeroMatrix.Zero(input); Assert.Equal(expected, input); }