public void GivenMatrixWithMoreColumsThanRowsWhenTraverseThenReturnValidResult() { //Given string[,] matrix = { { "a", "b", "c", "d" }, { "e", "f", "g", "h" }, { "i", "j", "k", "l" } }; //When string result = ArrayTraversal.TraverseMatrixDiagonally(matrix); //Then Assert.Equal("aebifcjgdkhl", result); }
public void GivenValidMatrixWhenTraverseThenReturnValidResult() { //Given string[,] matrix = { { "a", "b", "c" }, { "d", "e", "f" }, { "g", "h", "i" } }; //When string result = ArrayTraversal.TraverseMatrixDiagonally(matrix); //Then Assert.Equal("adbgechfi", result); }
public void GivenAnMatrixWithMoreRowsThanColumsWhenTraverseThenReturnValidResult() { //Given string[,] matrix = { { "a", "b", "c" }, { "d", "e", "f" }, { "g", "h", "i" }, { "j", "k", "l" } }; //When string result = ArrayTraversal.TraverseMatrixDiagonally(matrix); //Then Assert.Equal("adbgecjhfkil", result); }