@Test public void shouldOnlyCountOwnThreeRolls() { LastFrame lastFrame = new LastFrame(1, 9, 3); int score = lastFrame.countScore(); assertThat(score, is(13)); }
@Override public int countScore() { return firstRoll + secondRoll + thirdRoll; }
LastFrame extends Frame { @Override public int countScore() { return firstRoll + secondRoll + thirdRoll; } }
LastFrame extends Frame { @Override public int countScore() { return firstRoll + secondRoll + thirdRoll; } LastFrame(int firstRoll, int secondRoll, int thirdRoll); }
LastFrame extends Frame { @Override public int countScore() { return firstRoll + secondRoll + thirdRoll; } LastFrame(int firstRoll, int secondRoll, int thirdRoll); @Override int countScore(); }
LastFrame extends Frame { @Override public int countScore() { return firstRoll + secondRoll + thirdRoll; } LastFrame(int firstRoll, int secondRoll, int thirdRoll); @Override int countScore();  }