Assembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
public class AssemblyFixtureAttribute : TestTypePatternAttribute |
| Visual Basic (Declaration) |
|---|
Public Class AssemblyFixtureAttribute _ Inherits TestTypePatternAttribute |
Remarks
The assembly fixture attribute is applied to a class that contains setup and teardown methods that are to be applied at the assembly level. Conceptually, the AssemblyFixtureAttribute adds new behavior to an assembly-level test fixture that contains all of the test fixtures within the assembly.
The following attributes are typically used within an assembly fixture:
- FixtureSetUpAttribute: Performs setup activities before any test fixtures within the assembly are executed.
- FixtureTearDownAttribute: Performs teardown activities after all test fixtures within the assembly are executed.
- SetUpAttribute: Performs setup activities before each test fixture within the assembly is executed.
- TearDownAttribute: Performs teardown activities after each test fixture within the assembly is executed.
It is also possible to use other attributes as with an ordinary TestFixtureAttribute. An assembly fixture also supports data binding. When data binding is used on an assembly fixture, it will cause all test fixtures within the assembly to run once for each combination of data values used.
The class must have a public default constructor. The class may not be static.
There must only be at most one class with an AssemblyFixtureAttribute within any given assembly.
Inheritance Hierarchy
System..::.Attribute
Gallio.Framework.Pattern..::.PatternAttribute
Gallio.Framework.Pattern..::.TestTypePatternAttribute
MbUnit.Framework..::.AssemblyFixtureAttribute
