Class LocalTheoryAttribute
This custom XUnit Fact attribute will skip unit tests if the environment variable "XUNIT_SKIP_LOCAL_THEORY" exists and is set to the string "true"
Note that the original Xunit.v3.IFactAttribute.Skip property takes precedence over this attribute, any unit tests with LocalTheoryAttribute with its Xunit.v3.IFactAttribute.Skip property set will always be skipped, regardless of the environment variable content.
Implements
Inherited Members
Namespace: Akka.TestKit.Xunit.Attributes
Assembly: Akka.TestKit.Xunit.dll
Syntax
[XunitTestCaseDiscoverer(typeof(TheoryDiscoverer))]
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class LocalTheoryAttribute : LocalFactAttribute, ITheoryAttribute, IFactAttribute
Properties
| Edit this page View SourceDisableDiscoveryEnumeration
Gets a flag which indicates whether the test method wants to skip enumerating data during discovery. This will cause the theory to yield a single test case for all data, and the data discovery will be performed during test execution instead of discovery.
Declaration
public bool DisableDiscoveryEnumeration { get; set; }
Property Value
Type | Description |
---|---|
bool |
SkipTestWithoutData
Gets a flag which indicates whether the test should be skipped (rather than failed) for a lack of data.
Declaration
public bool SkipTestWithoutData { get; set; }
Property Value
Type | Description |
---|---|
bool |