Beispiel #1
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));
        }
Beispiel #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));
        }
Beispiel #3
0
        public void TurnFourTime()
        {
            var shape = new TetriminoL();

            Call.Action(4, () => shape.Turn());
            Check.That(shape).IsEquivalentTo((2, 1), (1, 1), (1, 2), (1, 3));
        }
Beispiel #4
0
        public void TurnThreeTime()
        {
            var shape = new TetriminoL();

            Call.Action(3, () => shape.Turn());
            Check.That(shape).IsEquivalentTo((3, 2), (3, 1), (2, 1), (1, 1));
        }
Beispiel #5
0
        public void TurnTwoTime()
        {
            var shape = new TetriminoL();

            Call.Action(2, () => shape.Turn());
            Check.That(shape).IsEquivalentTo((1, 3), (2, 3), (2, 2), (2, 1));
        }
Beispiel #6
0
        public void TurnOneTime(int start, FakeShape expected)
        {
            var shape = new TetriminoL(start);

            shape.Turn();
            Check.That(shape).IsEquivalentTo(expected);
        }