Class ProtoTestName

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

Builds the stable, fully qualified test name recorded for a test method, shared by the adapters so traces and reports use the same naming across frameworks.

public static class ProtoTestName
Inheritance
ProtoTestName
Inherited Members

Methods

ForRow(MethodInfo, IEnumerable<object?>)

Composes one parameterized row's trace name from the method's stable name and the row's arguments - "DeclaringType.FullName.MethodName[1, admin]" - so rows of one method stay distinguishable in traces and reports. MSTest and TUnit share this form; NUnit and xUnit record their own runner's display name instead.

public static string ForRow(MethodInfo method, IEnumerable<object?> arguments)

Parameters

method MethodInfo
arguments IEnumerable<object>

Returns

string

FromMethod(MethodInfo)

Returns "DeclaringType.FullName.MethodName", falling back to the method name alone.

public static string FromMethod(MethodInfo method)

Parameters

method MethodInfo

Returns

string