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.0.0 (3.3.392.0)

Syntax

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

Remarks

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

System..::.Object
  System..::.Attribute
    Gallio.Framework.Pattern..::.PatternAttribute
      Gallio.Framework.Pattern..::.DecoratorPatternAttribute
        Gallio.Framework.Pattern..::.ContributionMethodPatternAttribute
          MbUnit.Framework..::.SetUpAttribute

See Also

SetUpAttribute Members