Table of Contents

Class ParallelizableAttribute

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

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 ParallelScope

The 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

ParallelScope

Methods

ApplyToContext(TestExecutionContext)

Modify the context to be used for child tests

public void ApplyToContext(TestExecutionContext context)

Parameters

context TestExecutionContext

The current TestExecutionContext

ApplyToTest(Test)

Overridden to check for invalid combinations of settings

public override void ApplyToTest(Test test)

Parameters

test Test