Class RequiresThreadAttribute
Marks a test that must run on a separate thread.
Implements
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class RequiresThreadAttribute : PropertyAttribute, IApplyToTest
Constructors
View SourceRequiresThreadAttribute()
Construct a RequiresThreadAttribute
Declaration
public RequiresThreadAttribute()
RequiresThreadAttribute(ApartmentState)
Construct a RequiresThreadAttribute, specifying the apartment
Declaration
public RequiresThreadAttribute(ApartmentState apartment)
Parameters
Type | Name | Description |
---|---|---|
ApartmentState | apartment |