public void BoardDisplayer_WhenGiven2DArrayOfAllStars_ReturnsAllStars() { string[,] star2DArray = new string[3, 3] { { "*", "*", "*" }, { "*", "*", "*" }, { "*", "*", "*" } }; BoardDisplayer boardDisplayer = new BoardDisplayer(); string result = boardDisplayer.DisplayBoard(star2DArray); Assert.Equal(" 1 2 3\n1 * * * \n2 * * * \n3 * * * ", result); }
public void BoardDisplayer_WhenGiven2DArrayWithXIn11Position_ReturnsStringWithXInPosition11() { string[,] star2DArraywithX = new string[3, 3] { { "X", "*", "*" }, { "*", "*", "*" }, { "*", "*", "*" } }; BoardDisplayer boardDisplayer = new BoardDisplayer(); string result = boardDisplayer.DisplayBoard(star2DArraywithX); Assert.Equal(" 1 2 3\n1 X * * \n2 * * * \n3 * * * ", result); }