All quizzes
Free quiz · 36 questions in the bank

NUnit quiz

Test your NUnit knowledge with a free interactive quiz — 36 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What runs once for the whole fixture instead of before every test?

Questions in this quiz
  1. What runs once for the whole fixture instead of before every test?
  2. How do you assert on string content?
  3. How do you provide a custom failure message on an assertion?
  4. What NuGet packages does a typical NUnit test project need for `dotnet test` to work?
  5. How do you assert that code throws a specific exception?
  6. Which command-line tool runs NUnit tests outside an IDE?
  7. How do you assert a floating point comparison with a tolerance?
  8. What attribute lets a test method be `async`?
  9. How do you run setup code before each test in a fixture?
  10. How do you write a parametrized test with inline values?
  11. How do you mark a method as a test?
  12. How do you assert a collection contains a specific item?
Gaps to close?
Read the curated NUnit notes — core concepts, patterns, interview prep.
NUnit notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web