Class WpfTheoryAttribute
- Namespace
- Xunit
- Assembly
- Xunit.StaFact.dll
Identifies an xunit theory that starts on an STA thread with a WPF DispatcherSynchronizationContext. Tests will be Skipped on non-Windows operating systems.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
[XunitTestCaseDiscoverer(typeof(WpfTheoryDiscoverer))]
public class WpfTheoryAttribute : TheoryAttribute, _Attribute, ITheoryAttribute, IFactAttribute
- Inheritance
-
FactAttributeTheoryAttributeWpfTheoryAttribute
- Implements
-
ITheoryAttributeIFactAttribute
- Inherited Members
-
TheoryAttribute.DisableDiscoveryEnumerationTheoryAttribute.SkipTestWithoutDataFactAttribute.DisplayNameFactAttribute.ExplicitFactAttribute.SkipFactAttribute.SkipExceptionsFactAttribute.SkipTypeFactAttribute.SkipUnlessFactAttribute.SkipWhenFactAttribute.SourceFilePathFactAttribute.SourceLineNumberFactAttribute.Timeout
Constructors
WpfTheoryAttribute(string?, int)
Initializes a new instance of the WpfTheoryAttribute class.
public WpfTheoryAttribute(string? sourceFilePath = null, int sourceLineNumber = -1)