@Test @GivenFiguresInQueue({@FigureProperties}) public void shouldChangePositionWhenOnlyNextStep() { game.left(); assertCoordinates(CENTER_X, TOP_Y); }
@Test @GivenFiguresInQueue({@FigureProperties}) public void shouldBeMovedLeftWhenAsked() { game.left(); game.tick(); assertCoordinates(CENTER_X - 1, TOP_Y - 1); }
private void left(int times) { for (int i = 0; i < times; i++) { game.left(); } }