public void CheckNewBoardIsNotFull() { var game = new Game(); var board = new BoardAPI(Game.NUMBER_OF_COLUMNS, Game.NUMBER_OF_ROWS); var actualResult = board.IsBoardFull(game.Cells); Assert.IsFalse(actualResult); }
public void CheckFullyPlayedBoardIsFull() { var game = new Game(); var board = new BoardAPI(Game.NUMBER_OF_COLUMNS, Game.NUMBER_OF_ROWS); for (int c = 0; c < Game.NUMBER_OF_COLUMNS; c++) { for (int r = 0; r < Game.NUMBER_OF_ROWS; r++) { board.MakeMove(game.Cells, c, true); } } var actualResult = board.IsBoardFull(game.Cells); Assert.IsTrue(actualResult); }