views:

128

answers:

1

I'm using MBUnit for my test project and have a setup routine that must run before several different test fixtures can run properly.

Currently in each TestFixture I've got the [TestFixtureSetup] attribute on a routine that performs this, but the logic is unnecessarily duplicated in each individual test fixture.

What method is used to create a TestFixtureSetup routine that will run before any TestFixture is ran?

+1  A: 

In MbUnit v3, use [AssemblyFixture].

In MbUnit v2, use [AssemblyCleanUp].

Jeff Brown