Class FixtureLifeCycleAttribute
Specify the life cycle of a Fixture
Implements
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class FixtureLifeCycleAttribute : NUnitAttribute, IApplyToTest
Constructors
View SourceFixtureLifeCycleAttribute(LifeCycle)
Construct a FixtureLifeCycleAttribute with a specified LifeCycle.
Declaration
public FixtureLifeCycleAttribute(LifeCycle lifeCycle)
Parameters
Type | Name | Description |
---|---|---|
LifeCycle | lifeCycle |
Properties
View SourceLifeCycle
Defines the life cycle for this test fixture or assembly.
Declaration
public LifeCycle LifeCycle { get; }
Property Value
Type | Description |
---|---|
LifeCycle |
Methods
View SourceApplyToTest(Test)
Overridden to set a TestFixture's LifeCycle.
Declaration
public void ApplyToTest(Test test)
Parameters
Type | Name | Description |
---|---|---|
Test | test |