@Test public void shouldCountOwnScoreAsSumOf3Rolls() throws Exception { LastFrame lastFrame = new LastFrame(1, 9, 3); int score = lastFrame.countScore(); assertThat(score, is(13)); }
@Override public int countScore() { return ownScore + roll3; }
LastFrame extends Frame { @Override public int countScore() { return ownScore + roll3; } }
LastFrame extends Frame { @Override public int countScore() { return ownScore + roll3; } LastFrame(int roll1, int roll2, int roll3); }
LastFrame extends Frame { @Override public int countScore() { return ownScore + roll3; } LastFrame(int roll1, int roll2, int roll3); @Override int countScore(); }
LastFrame extends Frame { @Override public int countScore() { return ownScore + roll3; } LastFrame(int roll1, int roll2, int roll3); @Override int countScore();  }