Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some experience in MS Test but new to NUnit.

  1. Whether NUnit [Setup] is corresponding to [ClassInitialize] or [TestInitialize] in MS Test?
  2. What is the NUnit attribute corresponding to [TestInitialize]?




share|improve this question
Though the site is about XUnit, you can get some of the most used ones here: – cseder Nov 5 '12 at 15:00

NUnit [SetUp] corresponds to [TestInitialize].

For [ClassInitialize], use [TestFixtureSetUp] in NUnit.

The complete list can be found by a simple search. (a little old tho)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.