Table of Contents

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

theoryDataRow TTheoryDataRow

The theory data row

name string

The name of the trait

value string

The value of the trait

Returns

TTheoryDataRow

Type Parameters

TTheoryDataRow