Table of Contents

Method GetTestCaseDetails

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

GetTestCaseDetails(ITestFrameworkDiscoveryOptions, IXunitTestMethod, IFactAttribute, object?[]?, int?, string?, 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, string? SourceFilePath, int? SourceLineNumber, int Timeout, string UniqueID, IXunitTestMethod ResolvedTestMethod) GetTestCaseDetails(ITestFrameworkDiscoveryOptions discoveryOptions, IXunitTestMethod testMethod, IFactAttribute factAttribute, object?[]? testMethodArguments = null, int? timeout = null, string? baseDisplayName = null, string? label = 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.

label string

The optional label to be used to help format the test case display name.

Returns

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