Class OrderAttribute
Defines the order that the test will run in
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class OrderAttribute : NUnitAttribute, IApplyToTest, IApplyToTestSuite
Constructors
View SourceOrderAttribute(int)
Defines the order that the test will run in
Declaration
public OrderAttribute(int order)
Parameters
Type | Name | Description |
---|---|---|
int | order | The order that the test will run in |
Fields
View SourceOrder
The order that the test will run in
Declaration
public readonly int Order
Field Value
Type | Description |
---|---|
int |
Methods
View SourceApplyToTest(Test)
Modifies a test as defined for the specific attribute.
Declaration
public void ApplyToTest(Test test)
Parameters
Type | Name | Description |
---|---|---|
Test | test | The test to modify |
ApplyToTestSuite(TestSuite)
Modifies a test suite as defined for the specific attribute.
Declaration
public void ApplyToTestSuite(TestSuite testSuite)
Parameters
Type | Name | Description |
---|---|---|
TestSuite | testSuite | The test suite to modify |