Table of Contents

Method GetDisplayName

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

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

Gets the display name for the test method, factoring in arguments and generic types.

string GetDisplayName(string baseDisplayName, string? label, object?[]? testMethodArguments, Type[]? methodGenericTypes)

Parameters

baseDisplayName string

The base display name.

label string

The label for the test display name.

testMethodArguments object[]

The test method arguments.

methodGenericTypes Type[]

The generic types of the method.

Returns

string