Table of Contents

Method RegisterAssemblyTrait

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

RegisterAssemblyTrait(string, params string[])

Registers one or more traits that are attached to the test assembly.

public static void RegisterAssemblyTrait(string traitName, params string[] traitValues)

Parameters

traitName string

The trait name

traitValues string[]

The trait values

Remarks

This is typically called when TraitAttribute is seen at the test assembly level.