Table of Contents

Class WinFormsFactAttribute

Namespace
Xunit
Assembly
Xunit.StaFact.dll

Identifies an xunit test that starts on an STA thread with a WindowsFormsSynchronizationContext. Tests will be Skipped on non-Windows operating systems.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
[XunitTestCaseDiscoverer(typeof(WinFormsFactDiscoverer))]
public class WinFormsFactAttribute : FactAttribute, _Attribute, IFactAttribute
Inheritance
FactAttribute
WinFormsFactAttribute
Implements
IFactAttribute
Inherited Members
FactAttribute.DisplayName
FactAttribute.Explicit
FactAttribute.Skip
FactAttribute.SkipExceptions
FactAttribute.SkipType
FactAttribute.SkipUnless
FactAttribute.SkipWhen
FactAttribute.SourceFilePath
FactAttribute.SourceLineNumber
FactAttribute.Timeout

Constructors

WinFormsFactAttribute(string?, int)

Initializes a new instance of the WinFormsFactAttribute class.

public WinFormsFactAttribute(string? sourceFilePath = null, int sourceLineNumber = -1)

Parameters

sourceFilePath string
sourceLineNumber int