|
|
@ -46,4 +46,16 @@ public class BowlingCalculatorTest { |
|
|
|
// assert |
|
|
|
assertThat("calculated value", calculatedResult, CoreMatchers.equalTo(expectedValue)); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void twoThrowsAfterStrikeCountTwice() { |
|
|
|
// arrange |
|
|
|
String listOfThrows = "X 12 11 -- -- -- -- -- -- --"; |
|
|
|
int expectedValue = 18; |
|
|
|
// act |
|
|
|
int calculatedResult = bownlingCalculator.evaluate(listOfThrows); |
|
|
|
|
|
|
|
// assert |
|
|
|
assertThat("calculated value", calculatedResult, CoreMatchers.equalTo(expectedValue)); |
|
|
|
} |
|
|
|
} |