Table of Contents

Class DisplayNameFormatter

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

Represents a formatter that formats the display name of a class and/or method into a more human readable form using additional options.

public class DisplayNameFormatter
Inheritance
DisplayNameFormatter
Inherited Members

Constructors

DisplayNameFormatter()

Initializes a new instance of the DisplayNameFormatter class.

public DisplayNameFormatter()

DisplayNameFormatter(TestMethodDisplay, TestMethodDisplayOptions)

Initializes a new instance of the DisplayNameFormatter class.

public DisplayNameFormatter(TestMethodDisplay display, TestMethodDisplayOptions displayOptions)

Parameters

display TestMethodDisplay

The TestMethodDisplay used by the formatter.

displayOptions TestMethodDisplayOptions

The TestMethodDisplayOptions used by the formatter.

Methods

Format(string)

Formats the specified display name.

public string Format(string displayName)

Parameters

displayName string

The display name to format.

Returns

string

The formatted display name.