Table of Contents

Property MethodName

Namespace
Xunit.SimpleRunner
Assembly
xunit.v3.runner.utility.netfx.dll

MethodName

Gets the name of the method that contains the test.

public required string? MethodName { get; set; }

Property Value

string

Remarks

For typical xUnit.net tests, this will not be null. However, some custom test frameworks may generate tests from sources other than methods, in which case this value may be null.