Method WithTrait
- Namespace
- Xunit
- Assembly
- xunit.v3.core.dll
WithTrait<TTheoryDataRow>(TTheoryDataRow, string, string)
Adds a single trait name/value pair to the theory data row.
public static TTheoryDataRow WithTrait<TTheoryDataRow>(this TTheoryDataRow theoryDataRow, string name, string value) where TTheoryDataRow : TheoryDataRowBase
Parameters
theoryDataRowTTheoryDataRowThe theory data row
namestringThe name of the trait
valuestringThe value of the trait
Returns
- TTheoryDataRow
Type Parameters
TTheoryDataRow