Table of Contents

Class OrderAttribute

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

Defines the order that the test will run in

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class OrderAttribute : NUnitAttribute, IApplyToTest, IApplyToTestSuite
Inheritance
OrderAttribute
Implements
Inherited Members

Constructors

OrderAttribute(int)

Defines the order that the test will run in

public OrderAttribute(int order)

Parameters

order int

Fields

Order

Defines the order that the test will run in

public readonly int Order

Field Value

int

Methods

ApplyToTest(Test)

Modifies a test as defined for the specific attribute.

public void ApplyToTest(Test test)

Parameters

test Test

The test to modify

ApplyToTestSuite(TestSuite)

Modifies a test suite as defined for the specific attribute.

public void ApplyToTestSuite(TestSuite testSuite)

Parameters

testSuite TestSuite

The test suite to modify