Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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]);
        }