|
@ -2,6 +2,7 @@ package de.edu.hsfulda.ciip.tdd; |
|
|
|
|
|
|
|
|
import static org.junit.Assert.*; |
|
|
import static org.junit.Assert.*; |
|
|
|
|
|
|
|
|
|
|
|
import org.hamcrest.CoreMatchers; |
|
|
import org.junit.Test; |
|
|
import org.junit.Test; |
|
|
|
|
|
|
|
|
public class BowlingCalculatorTest { |
|
|
public class BowlingCalculatorTest { |
|
@ -16,6 +17,8 @@ public class BowlingCalculatorTest { |
|
|
// act |
|
|
// act |
|
|
int calculatedResult = bownlingCalculator.evaluate(listOfThrows); |
|
|
int calculatedResult = bownlingCalculator.evaluate(listOfThrows); |
|
|
|
|
|
|
|
|
|
|
|
// assert |
|
|
|
|
|
assertThat("calculated value", calculatedResult, CoreMatchers.equalTo(expectedValue)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |