예제 #1
0
 public void testBoard()
 {
     ArrayList board = new TTTGame().getBoard();
     Assert.AreEqual(9, board.Count);
     foreach (int b in board)
     {
         Assert.AreEqual(0, b);
     }
 }
예제 #2
0
        public void testBoard()
        {
            ArrayList board = new TTTGame().getBoard();

            Assert.AreEqual(9, board.Count);
            foreach (int b in board)
            {
                Assert.AreEqual(0, b);
            }
        }
예제 #3
0
        public void testInvalidMove()
        {
            TTTGame g = new TTTGame();

            Assert.False(g.validMove(0, 0));
        }
예제 #4
0
        public void testMakeMove()
        {
            TTTGame g = new TTTGame();

            Assert.True(g.makeMove("x", 0, 0));
        }
예제 #5
0
        public void testValidMove()
        {
            TTTGame g = new TTTGame();

            Assert.True(g.validMove(0, 0));
        }
예제 #6
0
        public void testValidMove()
        {
            TTTGame g = new TTTGame();

            Assert.True(g.validMove(0, 0));
        }
예제 #7
0
 public void testMakeMove()
 {
     TTTGame g = new TTTGame();
     Assert.True(g.makeMove("x",0, 0));
 }
예제 #8
0
        public void testInvalidMove()
        {
            TTTGame g = new TTTGame();

            Assert.False(g.validMove(0, 0));
        }