예제 #1
0
        public void TestCanMoveRightNotOK02()
        {
            Tetromino  block = new Tetromino(9, 7, TetrominoType.Square);
            TetrisGame game  = new TetrisGame();

            game.FreezeContent(7, 10);
            Assert.IsFalse(block.CanMoveRight(game));
        }
예제 #2
0
        public void TestCanMoveDownNotOK02( )
        {
            Tetromino  block = new Tetromino(1, TetrisGame.NB_ROWS - 3, TetrominoType.Square);
            TetrisGame game  = new TetrisGame( );

            game.FreezeContent(TetrisGame.NB_ROWS - 1, 1);
            Assert.IsFalse(block.CanMoveDown(game));
        }
예제 #3
0
        public void TestCanMoveLeftNotOK02()
        {
            Tetromino  block = new Tetromino(10, 5, TetrominoType.Square);
            TetrisGame game  = new TetrisGame();

            game.FreezeContent(5, 8);
            Assert.IsFalse(block.CanMoveLeft(game));
        }