Table of Contents

Method GetTestCaseDetails

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

GetTestCaseDetails(ITestFrameworkDiscoveryOptions, IXunitTestMethod, IFactAttribute, object?[]?, int?, string?)

Retrieve the details for a test case that is a test method decorated with an instance of IFactAttribute (or derived).

public static (string TestCaseDisplayName, bool Explicit, Type[]? SkipExceptions, string? SkipReason, Type? SkipType, string? SkipUnless, string? SkipWhen, int Timeout, string UniqueID, IXunitTestMethod ResolvedTestMethod) GetTestCaseDetails(ITestFrameworkDiscoveryOptions discoveryOptions, IXunitTestMethod testMethod, IFactAttribute factAttribute, object?[]? testMethodArguments = null, int? timeout = null, string? baseDisplayName = null)

Parameters

discoveryOptions

The options used for discovery.

testMethod

The test method.

factAttribute

The fact attribute that decorates the test method.

testMethodArguments object[]

The optional test method arguments.

timeout int?

The optional timeout; if not provided, will be looked up from the factAttribute.

baseDisplayName string

The optional base display name for the test method.

Returns

(string TestCaseDisplayName, bool Explicit, Type[] SkipExceptions, string SkipReason, Type SkipType, string SkipUnless, string SkipWhen, int Timeout, string UniqueID, IXunitTestMethod ResolvedTestMethod)