Table of Contents

Method ForTest

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

ForTest(string, int)

Computes a unique ID for a test.

public static string ForTest(string testCaseUniqueID, int testIndex)

Parameters

testCaseUniqueID string

The unique ID of the test case that this test belongs to.

testIndex int

The index of this test in the test case, typically starting with 0 (though a negative number may be used to prevent collisions with legitimate test indices).

Returns

string