Table of Contents

Method RegisterCodeGenTestCollectionTrait

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

RegisterCodeGenTestCollectionTrait(string?, Type?, string, params string[])

Register one or more trait values for the given test collection name and trait name.

public static void RegisterCodeGenTestCollectionTrait(string? testCollectionName, Type? testCollectionType, string traitName, params string[] traitValues)

Parameters

testCollectionName string

The optional test collection name

testCollectionType Type

The optional test collection type

traitName string

The name of the trait

traitValues string[]

The values associated with the trait name

Remarks

One of testCollectionName or testCollectionType must be non-null.