コード例 #1
0
        public void MoveLeft(int actionCount, int col1, int col2, int col3, int col4)
        {
            var shape = new TetriminoI(7);

            Call.Action(actionCount, () => shape.MoveLeft());
            Check.That(shape).IsEquivalentTo((1, col1), (1, col2), (1, col3), (1, col4));
        }
コード例 #2
0
        public void TurnCorrectlyWhenReachedLeftSideInVerticalPosition()
        {
            var shape = new TetriminoI();

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