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