Class ParallelizableAttribute
Marks a test assembly, fixture or method that may be run in parallel.
Inheritance
ParallelizableAttribute
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class ParallelizableAttribute : PropertyAttribute, IApplyToTest, IApplyToContext
Constructors
View SourceParallelizableAttribute()
Construct a ParallelizableAttribute using default ParallelScope.Self.
Declaration
public ParallelizableAttribute()
ParallelizableAttribute(ParallelScope)
Construct a ParallelizableAttribute with a specified scope.
Declaration
public ParallelizableAttribute(ParallelScope scope)
Parameters
Type | Name | Description |
---|---|---|
ParallelScope | scope | The ParallelScope associated with this attribute. |
Properties
View SourceScope
Defines the degree to which this test and its descendants may be run in parallel
Declaration
public ParallelScope Scope { get; }
Property Value
Type | Description |
---|---|
ParallelScope |
Methods
View SourceApplyToContext(TestExecutionContext)
Modify the context to be used for child tests
Declaration
public void ApplyToContext(TestExecutionContext context)
Parameters
Type | Name | Description |
---|---|---|
TestExecutionContext | context | The current TestExecutionContext |
ApplyToTest(Test)
Overridden to check for invalid combinations of settings
Declaration
public override void ApplyToTest(Test test)
Parameters
Type | Name | Description |
---|---|---|
Test | test |