Exemplo n.º 1
0
        public void testO()
        {
            tictactoe foo = new tictactoe();

            foo.changePlayer();
            Assert.AreEqual('o', foo.currentPlayer());
        }
Exemplo n.º 2
0
        public void placementTestX()
        {
            tictactoe foo = new tictactoe();

            foo.createBoard();
            foo.makeMove(0, 0, foo.currentPlayer());
            Assert.AreEqual(foo.board[0, 0], 'x');
        }
Exemplo n.º 3
0
        public void testX()
        {
            tictactoe foo = new tictactoe();

            Assert.AreEqual('x', foo.currentPlayer());
        }