Table of Contents

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

testMethod

The test method this test case belongs to.

testCaseDisplayName string

The display name for the test case.

uniqueID string

The unique ID for the test case.

explicit bool

Indicates whether the test case was marked as explicit.

skipExceptions Type[]

The value obtained from SkipExceptions.

skipReason string

The value obtained from Skip.

skipType Type

The value obtained from SkipType.

skipUnless string

The value obtained from SkipUnless.

skipWhen string

The value obtained from SkipWhen.

traits Dictionary<string, HashSet<string>>

The optional traits list.

testMethodArguments object[]

The optional arguments for the test method.

sourceFilePath string

The optional source file in where this test case originated.

sourceLineNumber int?

The optional source line number where this test case originated.

timeout int?

The optional timeout for the test case (in milliseconds).