You need to sign in to do that
Don't have an account?
Nitish Kulkarni
negative test method for age
A developer is asked to write negative tests as part of unit testng for a method that calculates a
person’s age based on birth date.
What should the negatve tests include?
a. Throwing a custom exception in the uniit test
b. Assert that a null value is accepted by method
c. Assert that past dates are accepted by method
d. Assert that future dates are rejected by the method
I have confusion between A and D someone please explain
person’s age based on birth date.
What should the negatve tests include?
a. Throwing a custom exception in the uniit test
b. Assert that a null value is accepted by method
c. Assert that past dates are accepted by method
d. Assert that future dates are rejected by the method
I have confusion between A and D someone please explain
D) Assert that future dates are rejected by the method -