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
testCollectionNamestringThe optional test collection name
testCollectionTypeTypeThe optional test collection type
traitNamestringThe name of the trait
traitValuesstring[]The values associated with the trait name
Remarks
One of testCollectionName or testCollectionType must be non-null.