Example #1
0
        public void MoveRight(int actionCount, int col1, int col2, int col3, int col4)
        {
            var shape = new TetriminoL();

            Call.Action(actionCount, () => shape.MoveRight());
            Check.That(shape).IsEquivalentTo((2, col1), (1, col2), (1, col3), (1, col4));
        }
Example #2
0
        public void TurnCorrectlyWhenReachedRightSideInVerticalLeftPosition()
        {
            var shape = new TetriminoL(9);

            shape.Turn();
            Call.Action(5, () => shape.MoveRight());
            shape.Turn();
            Check.That(shape).IsEquivalentTo((1, 12), (2, 12), (2, 11), (2, 10));
        }