@Test public void shouldCalculateScoreWithNoBonus() throws Exception { Frame frame = new Frame(1, 2); int score = frame.countScore(); assertThat(score, is(3)); }
public int countScore() { return ownScore + calculateBonus(); }
Frame { public int countScore() { return ownScore + calculateBonus(); } }
Frame { public int countScore() { return ownScore + calculateBonus(); } Frame(int roll1, int roll2); }
Frame { public int countScore() { return ownScore + calculateBonus(); } Frame(int roll1, int roll2); int countScore(); void setNext(Frame next); }
Frame { public int countScore() { return ownScore + calculateBonus(); } Frame(int roll1, int roll2); int countScore(); void setNext(Frame next);  }