Table of Contents

Class TheoryDataRowBaseExtensions

Namespace
Xunit
Assembly
xunit.v3.core.dll

Extension methods for TheoryDataRowBase.

public static class TheoryDataRowBaseExtensions
Inheritance
TheoryDataRowBaseExtensions
Inherited Members

Methods

WithExplicit<TTheoryDataRow>(TTheoryDataRow, bool?)

Sets the explicit flag on a theory data row.

public static TTheoryDataRow WithExplicit<TTheoryDataRow>(this TTheoryDataRow theoryDataRow, bool? @explicit) where TTheoryDataRow : TheoryDataRowBase

Parameters

theoryDataRow TTheoryDataRow

The theory data row

explicit bool?

The value to use for whether this row is explicit

Returns

TTheoryDataRow

Type Parameters

TTheoryDataRow

WithSkip<TTheoryDataRow>(TTheoryDataRow, string?)

Sets the skip reason on a theory data row.

public static TTheoryDataRow WithSkip<TTheoryDataRow>(this TTheoryDataRow theoryDataRow, string? skip) where TTheoryDataRow : TheoryDataRowBase

Parameters

theoryDataRow TTheoryDataRow

The theory data row

skip string

The value to use for the skip reason; pass null to not skip

Returns

TTheoryDataRow

Type Parameters

TTheoryDataRow

WithTestDisplayName<TTheoryDataRow>(TTheoryDataRow, string?)

Sets the test display name on a theory data row.

public static TTheoryDataRow WithTestDisplayName<TTheoryDataRow>(this TTheoryDataRow theoryDataRow, string? testDisplayName) where TTheoryDataRow : TheoryDataRowBase

Parameters

theoryDataRow TTheoryDataRow

The theory data row

testDisplayName string

The value to use for the test display name; pass null to use the default display name

Returns

TTheoryDataRow

Type Parameters

TTheoryDataRow

WithTimeout<TTheoryDataRow>(TTheoryDataRow, int?)

Sets the timeout on a theory data row.

public static TTheoryDataRow WithTimeout<TTheoryDataRow>(this TTheoryDataRow theoryDataRow, int? timeout) where TTheoryDataRow : TheoryDataRowBase

Parameters

theoryDataRow TTheoryDataRow

The theory data row

timeout int?

The value to use for timeout, in seconds; pass null to not have a timeout

Returns

TTheoryDataRow

Type Parameters

TTheoryDataRow

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