Specifies a method that is to be invoked after each test in a fixture executes to tear down the state of the test.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.459.0)

Syntax

C#
public sealed class TearDownAttribute : ContributionMethodPatternAttribute
Visual Basic (Declaration)
Public NotInheritable Class TearDownAttribute _
	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

See Also