Table of Contents

Method WithTestDisplayName

Namespace
Xunit
Assembly
xunit.v3.core.dll

WithTestDisplayName<TTheoryDataRow>(TTheoryDataRow, string?)

Sets the test display name on a theory data row.

public static TTheoryDataRow WithTestDisplayName<TTheoryDataRow>(this TTheoryDataRow theoryDataRow, string? testDisplayName) where TTheoryDataRow : TheoryDataRowBase

Parameters

theoryDataRow TTheoryDataRow

The theory data row

testDisplayName string

The value to use for the test display name; pass null to use the default display name

Returns

TTheoryDataRow

Type Parameters

TTheoryDataRow