Table of Contents

Class RequiresSTAAttribute

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

Marks a test that must run in the STA, causing it to run in a separate thread if necessary.

[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class RequiresSTAAttribute : PropertyAttribute, IApplyToTest
Inheritance
RequiresSTAAttribute
Implements
Inherited Members

Constructors

RequiresSTAAttribute()

Construct a RequiresSTAAttribute

public RequiresSTAAttribute()