Table of Contents

Class FixtureLifeCycleAttribute

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

Specify the life cycle of a Fixture

[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class FixtureLifeCycleAttribute : NUnitAttribute, IApplyToTest
Inheritance
FixtureLifeCycleAttribute
Implements
Inherited Members

Constructors

FixtureLifeCycleAttribute(LifeCycle)

Construct a FixtureLifeCycleAttribute with a specified LifeCycle.

public FixtureLifeCycleAttribute(LifeCycle lifeCycle)

Parameters

lifeCycle LifeCycle

Properties

LifeCycle

Defines the life cycle for this test fixture or assembly.

public LifeCycle LifeCycle { get; }

Property Value

LifeCycle

Methods

ApplyToTest(Test)

Overridden to set a TestFixture's LifeCycle.

public void ApplyToTest(Test test)

Parameters

test Test