Class WinFormsTheoryAttribute
- Namespace
- Xunit
- Assembly
- Xunit.StaFact.dll
Identifies an xunit theory 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(WinFormsTheoryDiscoverer))]
public class WinFormsTheoryAttribute : TheoryAttribute, _Attribute, ITheoryAttribute, IFactAttribute
- Inheritance
-
FactAttributeTheoryAttributeWinFormsTheoryAttribute
- Implements
-
ITheoryAttributeIFactAttribute
- Inherited Members
-
TheoryAttribute.DisableDiscoveryEnumerationTheoryAttribute.SkipTestWithoutDataFactAttribute.DisplayNameFactAttribute.ExplicitFactAttribute.SkipFactAttribute.SkipExceptionsFactAttribute.SkipTypeFactAttribute.SkipUnlessFactAttribute.SkipWhenFactAttribute.SourceFilePathFactAttribute.SourceLineNumberFactAttribute.Timeout
Constructors
WinFormsTheoryAttribute(string?, int)
Initializes a new instance of the WinFormsTheoryAttribute class.
public WinFormsTheoryAttribute(string? sourceFilePath = null, int sourceLineNumber = -1)