Class ParallelizableAttribute
ParallelizableAttribute is used to mark tests that may be run in parallel.
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class ParallelizableAttribute : PropertyAttribute, IApplyToTest, IApplyToContext
- Inheritance
-
ParallelizableAttribute
- Implements
- 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.
Methods
ApplyToContext(TestExecutionContext)
Modify the context to be used for child tests
public void ApplyToContext(TestExecutionContext context)
Parameters
context
TestExecutionContextThe current TestExecutionContext