public void TestCanMoveRightNotOK02() { Tetromino block = new Tetromino(9, 7, TetrominoType.Square); TetrisGame game = new TetrisGame(); game.FreezeContent(7, 10); Assert.IsFalse(block.CanMoveRight(game)); }
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)); }
public void TestCanMoveLeftNotOK02() { Tetromino block = new Tetromino(10, 5, TetrominoType.Square); TetrisGame game = new TetrisGame(); game.FreezeContent(5, 8); Assert.IsFalse(block.CanMoveLeft(game)); }