public void TestCanMoveRightNotOK03() { Tetromino block = new Tetromino(99, TetrisGame.NB_ROWS - 2, TetrominoType.Square); TetrisGame game = new TetrisGame(); Assert.IsFalse(block.CanMoveRight(game)); }
public void TestCanMoveRightNotOK01() { Tetromino block = new Tetromino(TetrisGame.NB_COLUMNS - 1, 6, TetrominoType.Square); TetrisGame game = new TetrisGame(); Assert.IsFalse(block.CanMoveRight(game)); }
public void TestCanMoveRightOK02() { Tetromino block = new Tetromino(7, TetrisGame.NB_ROWS / 2, TetrominoType.Square); TetrisGame game = new TetrisGame(); Assert.IsTrue(block.CanMoveRight(game)); }
public void TestCanMoveRightNotOK02() { Tetromino block = new Tetromino(9, 7, TetrominoType.Square); TetrisGame game = new TetrisGame(); game.FreezeContent(7, 10); Assert.IsFalse(block.CanMoveRight(game)); }