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

            tictactoe.CreateBoard();
            Assert.AreEqual(9, tictactoe.TictactoeArray.Length);
        }
Exemplo n.º 2
0
        public void CurrentPlayerPlaceO()
        {
            tictactoe tictactoe = new tictactoe();

            tictactoe.CreateBoard();
            tictactoe.MakeMove(1, "O");
            Assert.AreEqual("O", tictactoe.TictactoeArray[1]);
        }
Exemplo n.º 3
0
        public void CurrentPlayerPlaceX()
        {
            tictactoe tictactoe = new tictactoe();

            tictactoe.CreateBoard();
            tictactoe.MakeMove(2, "X");
            Assert.AreEqual("X", tictactoe.TictactoeArray[2]);
        }
Exemplo n.º 4
0
        public void placementIsUsed()
        {
            tictactoe tictactoe = new tictactoe();

            tictactoe.CreateBoard();
            bool inUsed = tictactoe.SpaceinUse(3);

            Assert.AreEqual(false, inUsed);
        }