Interface IXunitTest
Represents a test from xUnit.net v3 based on reflection.
public interface IXunitTest : ITest, ITestMetadata
- Inherited Members
Properties
Explicit
Gets a flag indicating whether this test was marked as explicit or not.
bool Explicit { get; }
Property Value
SkipReason
Gets a skip reason for this test.
string? SkipReason { get; }
Property Value
Remarks
This value may not line up the with SkipReason, as you can skip individual data rows during delay enumeration.
TestCase
Gets the test case this test belongs to.
IXunitTestCase TestCase { get; }
Property Value
TestMethod
Gets the test method to run. May different from the test method embedded in the test case.
IXunitTestMethod TestMethod { get; }
Property Value
TestMethodArguments
Gets the arguments to be passed to the test method during invocation.
object?[] TestMethodArguments { get; }
Property Value
- object[]
Timeout
Gets the timeout for the test, in milliseconds; if 0, there is no timeout.
int Timeout { get; }
Property Value
Remarks
WARNING: Using this with Aggressive will result in undefined behavior. Timeout is only supported by Conservative (or when parallelization is disabled completely).