NUnit Test Attribute Execution Order

June 23, 2006

I went looking to find the order in which NUnit executes the test attributes/events.  Oddly enough, I couldn't find it.  (Maybe I'm not googling it properly.)

Anyway, here's the NUnit attribute event order:

  1. TestFixtureSetUp
  2. SetUp
  3. Test
  4. TearDown
  5. Repeat steps 2, 3, and 4 for each test that's being run in this fixture.
  6. TestFixtureTearDown

-Ben

Categories: tech