Beispiel #1
0
        public void TestBoardDataRow()
        {
            var board         = new GameBoard(1, 1);
            var dataRowString = board.GetRowWithData(board.Board[0]);

            Assert.AreEqual("| " + board.GetBoardSquareStateSymbol(board.Board[0][0]) + " |", dataRowString);
        }
Beispiel #2
0
        public void TestBoardComplete()
        {
            var board       = new GameBoard(1, 1);
            var boardString = board.GetBoardString();

            var expectedResult =
                "+---+\n" +
                "| " + board.GetBoardSquareStateSymbol(board.Board[0][0]) + " |\n" +
                "+---+";

            Assert.AreEqual(expectedResult, boardString);
        }