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
discoveryOptionsThe options used for discovery.
testMethodThe test method.
factAttributeThe fact attribute that decorates the test method.
testMethodArgumentsobject[]The optional test method arguments.
timeoutint?The optional timeout; if not provided, will be looked up from the
factAttribute.baseDisplayNamestringThe optional base display name for the test method.
labelstringThe optional label to be used to help format the test case display name.