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
theoryDataRowTTheoryDataRowThe theory data row
explicitbool?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
theoryDataRowTTheoryDataRowThe theory data row
skipstringThe value to use for the skip reason; pass
nullto 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
theoryDataRowTTheoryDataRowThe theory data row
testDisplayNamestringThe value to use for the test display name; pass
nullto 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
theoryDataRowTTheoryDataRowThe theory data row
timeoutint?The value to use for timeout, in seconds; pass
nullto 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
theoryDataRowTTheoryDataRowThe theory data row
namestringThe name of the trait
valuestringThe value of the trait
Returns
- TTheoryDataRow
Type Parameters
TTheoryDataRow