public void TwoPlayersAreReadyToPlay() { var player1 = new Player("X"); var player2 = new Player("O"); var sut = new TickTacToeBoard(); sut.AddPlayer(player1); sut.AddPlayer(player2); Assert.AreEqual(2, (int)sut.NumberOfPlayers); }
public void PlayerChoosesALocation() { var player1 = new Player("X"); var sut = new TickTacToeBoard(); sut.AddPlayer(player1); int col1 = 0; int row1 = 0; sut.SelectLocation(player1, row1, col1); Assert.AreEqual("X", sut.Board[row1, col1]); }