public void testOneStrike() throws Exception { g.roll(10); // strike g.roll(3); g.roll(4); rollMany(16, 0); assertEquals(24, g.score()); assertEquals("same score", g.score2(), g.score()); }
public void testPerfectGame() throws Exception { rollMany(12, 10); assertEquals(300, g.score()); }
public void testAllOnes() throws Exception { rollMany(20, 1); assertEquals(20, g.score()); }
public void testOneSpare() throws Exception { rollSpare(); g.roll(3); rollMany(17, 0); assertEquals(String.valueOf(g.score()), 16, g.score()); }
public void testGutterGame() throws Exception { rollMany(20, 0); assertEquals(0, g.score()); }