Testing, Testing Tools, Pbt.
test_valid_age_range(int inRange, int outOfRange) { calculator.calculatBenefitForAge(inRange); assertThatThrownBy(() -> calculator.calculateBenefitForAge(outOfRange)).hasMessageStartingWith(“Age is out of range”); } @ParameterizedTest @CsvSource({“17,0”, “18,200”}) public void