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

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

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