Table of Contents

Method ForTestCase

Namespace
Xunit.Sdk
Assembly
xunit.v3.common.dll

ForTestCase(string, Type[]?, object?[]?)

Computes a unique ID for a test case.

public static string ForTestCase(string parentUniqueID, Type[]? testMethodGenericTypes, object?[]? testMethodArguments)

Parameters

parentUniqueID string

The unique ID of the parent in the hierarchy; typically the test method unique ID, but may also be the test class or test collection unique ID, when test method (and possibly test class) don't exist.

testMethodGenericTypes Type[]

The test method's generic types

testMethodArguments object[]

The test method's arguments

Returns

string

The computed unique ID for the test case