Table of Contents

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
FactAttribute
TheoryAttribute
WpfTheoryAttribute
Implements
ITheoryAttribute
IFactAttribute
Inherited Members
TheoryAttribute.DisableDiscoveryEnumeration
TheoryAttribute.SkipTestWithoutData
FactAttribute.DisplayName
FactAttribute.Explicit
FactAttribute.Skip
FactAttribute.SkipExceptions
FactAttribute.SkipType
FactAttribute.SkipUnless
FactAttribute.SkipWhen
FactAttribute.SourceFilePath
FactAttribute.SourceLineNumber
FactAttribute.Timeout

Constructors

WpfTheoryAttribute(string?, int)

Initializes a new instance of the WpfTheoryAttribute class.

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

Parameters

sourceFilePath string
sourceLineNumber int