Question: Write 2 negative tests to establish that the valid range for the length parameter is between 1 and 100. Write 10 positive tests to establish
- Write 2 negative tests to establish that the valid range for the length parameter is between 1 and 100.
- Write 10 positive tests to establish that it returns the correct string for length parameter values 1 through 10, using the default constructor.
- Write a positive test for a length parameter of 30 using default constructor.
- Write a positive test for a length parameter of 50 using default constructor.
- Write a positive test for a length parameter of 100 using default constructor.
- Write however many positive tests you deem necessary to establish that the non-default constructor works as it should.
Step by Step Solution
3.48 Rating (158 Votes )
There are 3 Steps involved in it
Negative Test 1 Input length 0 Expected Result The function should return an error indicating that t... View full answer
Get step-by-step solutions from verified subject matter experts
