Test Your Knowledge

Extra Topics - Lesson 2: Unit Testing with xUnit Quiz

Answer all questions to test your understanding

1 What is the purpose of unit testing?
2 What does the AAA pattern stand for in testing?
3 What is the difference between [Fact] and [Theory] in xUnit?
4 Which command runs unit tests in .NET?
5 What is the purpose of Assert in unit testing?
6 How do you test that a method throws an exception in xUnit?