Example #1
0
        public void ItIsAWinWhenOnePlayerHasThreeMarksInARowHorizontallyVerticalyOrDiagonally(string boardState)
        {
            var board = TestableBoard.Create(boardState);

            _game = new Game(_player1, _player2, board);

            _game.IsThereAWin().Should().BeTrue();
        }
Example #2
0
 public void WhenAllPositionsAreTakenBoardIsReportedToBeFull(string boardState)
 {
     _board = TestableBoard.Create(boardState);
     _board.IsBoardFull().Should().BeTrue();
 }