Exemplo n.º 1
0
        public void MoveRight(int actionCount, int col1, int col2, int col3, int col4)
        {
            var shape = new TetriminoZ();

            for (var i = 0; i < actionCount; i++)
            {
                shape.MoveRight();
            }
            Check.That(shape).IsEquivalentTo((1, col1), (1, col2), (2, col3), (2, col4));
        }
Exemplo n.º 2
0
        public void TurnCorrectlyWhenReachedRightSideInVerticalPosition()
        {
            var shape = new TetriminoZ(9);

            shape.Turn();
            for (var i = 0; i < 5; i++)
            {
                shape.MoveRight();
            }
            shape.Turn();
            Check.That(shape).IsEquivalentTo((1, 10), (1, 11), (2, 11), (2, 12));
        }