Class UITheoryAttribute
- Namespace
- Xunit
- Assembly
- Xunit.StaFact.dll
Identifies an xunit theory that starts on a UI thread-like SynchronizationContext such that awaited expressions resume on the test's "main thread". On Windows, the test runs on an STA thread.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
[XunitTestCaseDiscoverer(typeof(UITheoryDiscoverer))]
public class UITheoryAttribute : TheoryAttribute, _Attribute, ITheoryAttribute, IFactAttribute
- Inheritance
-
FactAttributeTheoryAttributeUITheoryAttribute
- Implements
-
ITheoryAttributeIFactAttribute
- Inherited Members
-
TheoryAttribute.DisableDiscoveryEnumerationTheoryAttribute.SkipTestWithoutDataFactAttribute.DisplayNameFactAttribute.ExplicitFactAttribute.SkipFactAttribute.SkipExceptionsFactAttribute.SkipTypeFactAttribute.SkipUnlessFactAttribute.SkipWhenFactAttribute.SourceFilePathFactAttribute.SourceLineNumberFactAttribute.Timeout
Constructors
UITheoryAttribute(string?, int)
Initializes a new instance of the UITheoryAttribute class.
public UITheoryAttribute(string? sourceFilePath = null, int sourceLineNumber = -1)