Table of Contents

Class SingleThreadedAttribute

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

Marks a test fixture as requiring all child tests to be run on the same thread as the OneTimeSetUp and OneTimeTearDown. A flag in the TestExecutionContext is set forcing all child tests to be run sequentially on the current thread. Any ParallelScope setting is ignored.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class SingleThreadedAttribute : NUnitAttribute, IApplyToContext
Inheritance
SingleThreadedAttribute
Implements
Inherited Members

Constructors

SingleThreadedAttribute()

public SingleThreadedAttribute()

Methods

ApplyToContext(TestExecutionContext)

Apply changes to the TestExecutionContext

public void ApplyToContext(TestExecutionContext context)

Parameters

context TestExecutionContext

The TestExecutionContext