Table of Contents

Method ForTestMethod

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

ForTestMethod(string?, string?)

Computes a unique ID for a test method.

public static string? ForTestMethod(string? testClassUniqueID, string? methodName)

Parameters

testClassUniqueID string

The unique ID of the parent test class for the test method

methodName string

The optional test method name

Returns

string

The computed unique ID for the test method (may return null if either the class unique ID or the method name is null)