@Test public void shouldCountScoreWithNoBonus() throws Exception { Frame frame = new Frame(1, 2); int score = frame.countScore(); assertThat(score, is(3)); }
public int countScore() { return ownScore() + countBonus(); }
Frame { public int countScore() { return ownScore() + countBonus(); } }
Frame { public int countScore() { return ownScore() + countBonus(); } Frame(int firstBall, int secondBall); }
Frame { public int countScore() { return ownScore() + countBonus(); } Frame(int firstBall, int secondBall); int countScore(); void setNext(Frame next); }
Frame { public int countScore() { return ownScore() + countBonus(); } Frame(int firstBall, int secondBall); int countScore(); void setNext(Frame next);  }