Table of Contents

Method RegisterCodeGenTestMethodTrait

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

RegisterCodeGenTestMethodTrait(string, string, string, params string[])

Register one or more trait values for the given test class, test method, and trait name.

public static void RegisterCodeGenTestMethodTrait(string testClassIndex, string methodName, string traitName, params string[] traitValues)

Parameters

testClassIndex string

The test class index (per RegisterCodeGenTestMethod(string, string, CodeGenTestMethodRegistration))

methodName string

The test method name (per RegisterCodeGenTestMethod(string, string, CodeGenTestMethodRegistration))

traitName string

The name of the trait

traitValues string[]

The values associated with the trait name