Table of Contents

Method ForTestClass

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

ForTestClass(string, string?)

Computes a unique ID for a test class.

public static string? ForTestClass(string testCollectionUniqueID, string? className)

Parameters

testCollectionUniqueID string

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

className string

The optional fully qualified type name of the test class

Returns

string

The computed unique ID for the test class (may return null if className is null)