Table of Contents

Property Label

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

Label

Gets the label to use for the data row. This value is used to help format the display name of the test.

string? Label { get; }

Property Value

string

Remarks

  • If the value is null (or not set), use the default behavior: MethodName(...argument list...)
  • If the value is an empty string, use just the method name: MethodName
  • For any other values, appends the label: MethodName [label]