コード例 #1
0
        public void Test_CheckWin_ThirdHorizontal()
        {
            var game = new TiKTakToe();

            game.makeStep(2, 0, 1);
            game.makeStep(2, 1, 1);
            game.makeStep(2, 2, 1);
            Assert.True(game.chekcWin(1));
        }
コード例 #2
0
        public void Test_CheckWin_SecondVertical()
        {
            var game = new TiKTakToe();

            game.makeStep(0, 1, 1);
            game.makeStep(1, 1, 1);
            game.makeStep(2, 1, 1);
            Assert.True(game.chekcWin(1));
        }
コード例 #3
0
        public void Test_CheckWin_MainDiagonal()
        {
            var game = new TiKTakToe();

            game.makeStep(0, 0, 1);
            game.makeStep(1, 1, 1);
            game.makeStep(2, 2, 1);
            Assert.True(game.chekcWin(1));
        }