Ejemplo n.º 1
0
        public void MoveLeft(int actionCount, int col1, int col2, int col3, int col4)
        {
            var shape = new TetriminoJ(7);

            Call.Action(actionCount, () => shape.MoveLeft());
            Check.That(shape).IsEquivalentTo((1, col1), (1, col2), (1, col3), (2, col4));
        }
Ejemplo n.º 2
0
        public void TurnCorrectlyWhenReachedLeftSideInVerticalRightPosition()
        {
            var shape = new TetriminoJ();

            shape.Turn();
            Call.Action(2, () => shape.MoveLeft());
            shape.Turn();
            Check.That(shape).IsEquivalentTo((1, 1), (2, 1), (2, 2), (2, 3));
        }