Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }