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
parentUniqueIDstringThe 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.
testMethodGenericTypesType[]The test method's generic types
testMethodArgumentsobject[]The test method's arguments
Returns
- string
The computed unique ID for the test case