Table of Contents

Method GetTraits

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

GetTraits(IXunitTestMethod, ITheoryDataRow?)

Merges the traits from the test method (which already reflect the traits from the test assembly, test collection, and test class) with the traits attached to the data row.

public static Dictionary<string, HashSet<string>> GetTraits(IXunitTestMethod testMethod, ITheoryDataRow? dataRow)

Parameters

testMethod

The test method to get traits from.

dataRow

The data row to get traits from.

Returns

Dictionary<string, HashSet<string>>

The traits dictionary