package de.edu.hsfulda.ciip.tdd; import static org.junit.Assert.*; import org.hamcrest.CoreMatchers; import org.junit.Test; public class BowlingCalculatorTest { @Test public void returnsZeroWhenNoPinIsHit() { // arrange String listOfThrows = "-- -- -- -- -- -- -- -- -- --"; int expectedValue = 0; BownlingCalculator bownlingCalculator = new BownlingCalculator(); // act int calculatedResult = bownlingCalculator.evaluate(listOfThrows); // assert assertThat("calculated value", calculatedResult, CoreMatchers.equalTo(expectedValue)); } }