Table of Contents

Interface ITestMethodMetadata

Namespace
Xunit.Sdk
Assembly
xunit.v3.common.dll

Represents metadata about a test method.

public interface ITestMethodMetadata

Properties

MethodArity

Gets the arity (number of generic types) of the test method. May return null if the arity of the test method is unknown (for example, for v1 or v2 test methods where arity information was not collected).

MethodName

Gets the name of the test method that is associated with this message.

Traits

Gets the trait values associated with this test method (and the test class, test collection, and test assembly). If there are none, or the framework does not support traits, this returns an empty dictionary (not null).

UniqueID

Gets the unique ID for this test method.