Ajout d'un test pour couvrir le cas limite du commit précédent
This commit is contained in:
parent
a93f449d76
commit
45e760fcac
1 changed files with 12 additions and 0 deletions
|
|
@ -30,6 +30,18 @@ class FeeCalculatorTest {
|
|||
assertThat(actualFee).isEqualTo(50.0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void for_age_exactly_14_should_be_child() {
|
||||
//GIVEN
|
||||
Visitor child = new Visitor(14);
|
||||
|
||||
//WHEN
|
||||
double actualFee = FeeCalculator.calculateFee(child, TicketType.FULL_DAY);
|
||||
|
||||
//THEN
|
||||
assertThat(actualFee).isEqualTo(50.0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void for_age_above_14_HALF_DAY_should_calculate_60() {
|
||||
//GIVEN
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue