Beispiel #1
0
        public void BoardIsNineField()
        {
            tictactoe tictactoe = new tictactoe();

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

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

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

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

            Assert.AreEqual(false, inUsed);
        }