C# (Sharp) Programming Language Question:

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

C# (Sharp) Programming Language Interview Question
C# (Sharp) Programming Language Interview Question

Answer:

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).


Previous QuestionNext Question
How do you debug an ASP.NET Web application?Explain ACID rule of thumb for transactions in C#.