Constructor XunitTest
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
XunitTest(IXunitTestCase, IXunitTestMethod, bool?, string?, string, int, IReadOnlyDictionary<string, IReadOnlyCollection<string>>, int?, object?[])
Initializes a new instance of the XunitTest class.
public XunitTest(IXunitTestCase testCase, IXunitTestMethod testMethod, bool? @explicit, string? skipReason, string testDisplayName, int testIndex, IReadOnlyDictionary<string, IReadOnlyCollection<string>> traits, int? timeout, object?[] testMethodArguments)
Parameters
testCaseThe test case this test belongs to.
testMethodThe test method to be run; may differ from the test method embedded into the test case
explicitbool?A flag to indicate the test was marked as explicit; if not set, will fall back to the test case
skipReasonstringThe skip reason for this test.
testDisplayNamestringThe display name for this test.
testIndexintThe index of this test inside the test case. Used for computing UniqueID.
traitsIReadOnlyDictionary<string, IReadOnlyCollection<string>>The traits for the given test.
timeoutint?The timeout for the test; if not set, will fall back to the test case
testMethodArgumentsobject[]The arguments to be passed to the test method
XunitTest(IXunitTestCase, IXunitTestMethod, bool?, string?, string, string, IReadOnlyDictionary<string, IReadOnlyCollection<string>>?, int?, object?[]?)
This constructor is for testing purposes only. Do not use in production code.
public XunitTest(IXunitTestCase testCase, IXunitTestMethod testMethod, bool? @explicit, string? skipReason, string testDisplayName, string uniqueID, IReadOnlyDictionary<string, IReadOnlyCollection<string>>? traits = null, int? timeout = null, object?[]? testMethodArguments = null)
Parameters
testCasetestMethodexplicitbool?skipReasonstringtestDisplayNamestringuniqueIDstringtraitsIReadOnlyDictionary<string, IReadOnlyCollection<string>>timeoutint?testMethodArgumentsobject[]