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)); }
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)); }
public void TurnFourTime() { var shape = new TetriminoL(); Call.Action(4, () => shape.Turn()); Check.That(shape).IsEquivalentTo((2, 1), (1, 1), (1, 2), (1, 3)); }
public void TurnThreeTime() { var shape = new TetriminoL(); Call.Action(3, () => shape.Turn()); Check.That(shape).IsEquivalentTo((3, 2), (3, 1), (2, 1), (1, 1)); }
public void TurnTwoTime() { var shape = new TetriminoL(); Call.Action(2, () => shape.Turn()); Check.That(shape).IsEquivalentTo((1, 3), (2, 3), (2, 2), (2, 1)); }
public void TurnOneTime(int start, FakeShape expected) { var shape = new TetriminoL(start); shape.Turn(); Check.That(shape).IsEquivalentTo(expected); }