Ajout d'un cas de test manquant pour si c'est un adulte et que c'est une journée complète
This commit is contained in:
parent
93202a9b6f
commit
55dcfe8422
1 changed files with 13 additions and 0 deletions
|
|
@ -44,4 +44,17 @@ class FeeCalculatorTest {
|
|||
//THEN
|
||||
assertThat(actualFee).isEqualTo(60.0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void for_age_above_14_FULL_DAY_should_calculate_120()
|
||||
{
|
||||
//GIVEN
|
||||
Visitor adult = new Visitor(20);
|
||||
|
||||
//WHEN
|
||||
double actualFee = FeeCalculator.calculateFee(adult, TicketType.FULL_DAY);
|
||||
|
||||
//THEN
|
||||
assertThat(actualFee).isEqualTo(120.0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue