Class SetUpFixtureAttribute
Identifies a class as containing OneTimeSetUpAttribute or OneTimeTearDownAttribute methods for all the test fixtures under a given namespace.
Implements
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class SetUpFixtureAttribute : NUnitAttribute, IFixtureBuilder
Constructors
View SourceSetUpFixtureAttribute()
Declaration
public SetUpFixtureAttribute()
Methods
View SourceBuildFrom(ITypeInfo)
Builds a NUnit.Framework.Internal.SetUpFixture from the specified type.
Declaration
public IEnumerable<TestSuite> BuildFrom(ITypeInfo typeInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| ITypeInfo | typeInfo | The type info of the fixture to be used. |
Returns
| Type | Description |
|---|---|
| IEnumerable<TestSuite> |