Table of Contents

Interface IXunitTest

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

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

bool

SkipReason

Gets a skip reason for this test.

string? SkipReason { get; }

Property Value

string

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

IXunitTestCase

TestMethod

Gets the test method to run. May different from the test method embedded in the test case.

IXunitTestMethod TestMethod { get; }

Property Value

IXunitTestMethod

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

int

Remarks

WARNING: Using this with Aggressive will result in undefined behavior. Timeout is only supported by Conservative (or when parallelization is disabled completely).