Constructor XunitTestCase
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
XunitTestCase()
Called by the de-serializer; should only be called by deriving classes for de-serialization purposes
[Obsolete("Called by the de-serializer; should only be called by deriving classes for de-serialization purposes")]
public XunitTestCase()
XunitTestCase(IXunitTestMethod, string, string, bool, Type[]?, string?, Type?, string?, string?, Dictionary<string, HashSet<string>>?, object?[]?, string?, int?, int?)
Initializes a new instance of the XunitTestCase class.
public XunitTestCase(IXunitTestMethod testMethod, string testCaseDisplayName, string uniqueID, bool @explicit, Type[]? skipExceptions = null, string? skipReason = null, Type? skipType = null, string? skipUnless = null, string? skipWhen = null, Dictionary<string, HashSet<string>>? traits = null, object?[]? testMethodArguments = null, string? sourceFilePath = null, int? sourceLineNumber = null, int? timeout = null)
Parameters
testMethodThe test method this test case belongs to.
testCaseDisplayNamestringThe display name for the test case.
uniqueIDstringThe unique ID for the test case.
explicitboolIndicates whether the test case was marked as explicit.
skipExceptionsType[]The value obtained from SkipExceptions.
skipReasonstringThe value obtained from Skip.
skipTypeTypeThe value obtained from SkipType.
skipUnlessstringThe value obtained from SkipUnless.
skipWhenstringThe value obtained from SkipWhen.
traitsDictionary<string, HashSet<string>>The optional traits list.
testMethodArgumentsobject[]The optional arguments for the test method.
sourceFilePathstringThe optional source file in where this test case originated.
sourceLineNumberint?The optional source line number where this test case originated.
timeoutint?The optional timeout for the test case (in milliseconds).