Table of Contents

Class ParallelizableAttribute

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

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 ParallelScope

The ParallelScope associated with this attribute.

Methods

ApplyToContext(TestExecutionContext)

Modify the context to be used for child tests

public void ApplyToContext(TestExecutionContext context)

Parameters

context TestExecutionContext

The current TestExecutionContext