コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: homebox50/QALab06
        public void testO()
        {
            tictactoe foo = new tictactoe();

            foo.changePlayer();
            Assert.AreEqual('o', foo.currentPlayer());
        }
コード例 #2
0
ファイル: UnitTest1.cs プロジェクト: homebox50/QALab06
        public void placementTestX()
        {
            tictactoe foo = new tictactoe();

            foo.createBoard();
            foo.makeMove(0, 0, foo.currentPlayer());
            Assert.AreEqual(foo.board[0, 0], 'x');
        }
コード例 #3
0
ファイル: UnitTest1.cs プロジェクト: homebox50/QALab06
        public void testX()
        {
            tictactoe foo = new tictactoe();

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