Interview Questions

What are three test cases you should go through in unit testing?

C# Interview Questions and Answers


(Continued from previous question...)

191. What are three test cases you should go through in unit testing?

1. Positive test cases (correct data, correct output).
2. Negative test cases (broken or missing data, proper handling).
3. Exception test cases (exceptions are thrown and caught properly).

(Continued on next question...)

Other Interview Questions