Language

TestFilterContext.DisplayName Property

Definition

Gets or sets the display name of the test, as reported to the runner / IDE.

public string DisplayName { get; set; }
member this.DisplayName : string with get, set
Public Property DisplayName As String

Property Value

Remarks

Often equal to MethodName; differs for data-driven tests, tests with a custom TestMethodAttribute display name, or attributes that override it.

Applies to