Specifies a method that is to be invoked before each test in a fixture executes to set up the state of the test.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: (3.3.392.0)


public sealed class SetUpAttribute : ContributionMethodPatternAttribute
Visual Basic (Declaration)
Public NotInheritable Class SetUpAttribute _
	Inherits ContributionMethodPatternAttribute


The method will run once for each test.

The attribute may be applied to multiple methods within a fixture, however the order in which they are processed is undefined.

The method to which this attribute is applied must be declared by the fixture class and must not have any parameters. The method may be static.

Inheritance Hierarchy


See Also

SetUpAttribute Members