This page last changed on Jul 02, 2005 by peli.

All MbUnit fixtures support initialization (TestFixtureSetUpAttribute) and cleanup (TestFixtureTearDownAttribute) at the fixture level. This is particularly useful to setup and teardown time consuming resources.

Rationale

  • Supported by all fixture types
  • Only 1 TestFixtureSetUp (resp. TestFixtureTearDown) method is allowed per fixture,
  • Both methods are optional,
  • TestFixtureSetUp method is called before the execution of the test cases,
  • If TestFixtureSetUp fails, all the tests are marked as failed,
  • TestFixtureTearDown is called after all tests have been executed. MbUnit ensures that it is called,
  • If TestFixtureTearDown fails, all tests are marked as failed,
  • Both methods can be inherited
Document generated by Confluence on Jun 11, 2007 11:56