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

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

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