@Test public void shouldCountScoreOfRegularRolls() { Frame frame = new Frame(1, 2); int score = frame.countScore(); assertThat(score, is(3)); }
public int countScore() { System.out.println(ownScore + getBonus()); return ownScore + getBonus(); }
Frame { public int countScore() { System.out.println(ownScore + getBonus()); return ownScore + getBonus(); } }
Frame { public int countScore() { System.out.println(ownScore + getBonus()); return ownScore + getBonus(); } Frame(int firstRoll, int secondRoll); }
Frame { public int countScore() { System.out.println(ownScore + getBonus()); return ownScore + getBonus(); } Frame(int firstRoll, int secondRoll); int countScore(); void setNextFrame(Frame nextFrame); }
Frame { public int countScore() { System.out.println(ownScore + getBonus()); return ownScore + getBonus(); } Frame(int firstRoll, int secondRoll); int countScore(); void setNextFrame(Frame nextFrame);  }