Using TestFixtureSetUp Attribute to Run before Test Execution

NUnit provides a mechanism to call functions just before each test execution. This is accomplished with the help of the NUnit TestFixtureSetUpAttribute.

This mechanism can be used in Concordion.NET as well. All methods marked with the attribute [TestFixtureSetUp] are executed before the actual processing of the active specification.

Example

The test fixture class for this specification contains two method with the TestFixtureSetUp attribute, which are called before test execution.

Further Details