示例#1
0
        public void TestCanMoveRightNotOK03()
        {
            Tetromino  block = new Tetromino(99, TetrisGame.NB_ROWS - 2, TetrominoType.Square);
            TetrisGame game  = new TetrisGame();

            Assert.IsFalse(block.CanMoveRight(game));
        }
示例#2
0
        public void TestCanMoveRightNotOK01()
        {
            Tetromino  block = new Tetromino(TetrisGame.NB_COLUMNS - 1, 6, TetrominoType.Square);
            TetrisGame game  = new TetrisGame();

            Assert.IsFalse(block.CanMoveRight(game));
        }
示例#3
0
        public void TestCanMoveRightOK02()
        {
            Tetromino  block = new Tetromino(7, TetrisGame.NB_ROWS / 2, TetrominoType.Square);
            TetrisGame game  = new TetrisGame();

            Assert.IsTrue(block.CanMoveRight(game));
        }
示例#4
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));
        }