public void DontTurnWhenReachedBottomInAnyPosition(int bottomPadding) { var shape = new TetriminoI(); var height = Game.Height - bottomPadding; Call.Action(height - 1, () => shape.MoveDown()); shape.Turn(); Check.That(shape).IsEquivalentTo((height, 1), (height, 2), (height, 3), (height, 4)); }
public void DontBugWhenTryingToChangePositionTwiceOnBottom(int bottomPadding) { var shape = new TetriminoI(); var height = Game.Height - bottomPadding; Call.Action(height - 1, () => shape.MoveDown()); shape.Turn(); shape.Turn(); Check.That(shape).IsEquivalentTo((height, 1), (height, 2), (height, 3), (height, 4)); }