Table of Contents

Method GetClassTraits

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

GetClassTraits(Type?, IReadOnlyDictionary<string, IReadOnlyCollection<string>>?)

Gets the traits that are attached to the test class via ITraitAttributes.

public static IReadOnlyDictionary<string, IReadOnlyCollection<string>> GetClassTraits(Type? testClass, IReadOnlyDictionary<string, IReadOnlyCollection<string>>? testCollectionTraits)

Parameters

testClass Type

The test class

testCollectionTraits IReadOnlyDictionary<string, IReadOnlyCollection<string>>

The traits inherited from the test collection

Returns

IReadOnlyDictionary<string, IReadOnlyCollection<string>>