Class TheoryDataRowBase
- Namespace
- Xunit
- Assembly
- xunit.v3.core.dll
Provide a base implemention of ITheoryDataRow with settable properties and deferred data storage.
public abstract class TheoryDataRowBase : ITheoryDataRow
- Inheritance
-
TheoryDataRowBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
Explicit
Gets a flag that indicates that the data row should only be run explicitly. If the value is null,
then it inherits its explicitness from the value of Explicit.
public bool? Explicit { get; set; }
Property Value
- bool?
Skip
Gets the reason for skipping this row of data; if null is returned, then the data
row isn't skipped.
public string? Skip { get; set; }
Property Value
TestDisplayName
Gets the display name for the test (replacing the default behavior, which would be to use TestDisplayName or DisplayName, or falling back to the default test display name based on TestMethodDisplay and TestMethodDisplayOptions in the configuration file).
public string? TestDisplayName { get; set; }
Property Value
Timeout
A value greater than zero marks the test as having a timeout, and gets or sets the
timeout (in milliseconds). A non-null value here overrides any inherited value
from the IDataAttribute or the ITheoryAttribute.
public int? Timeout { get; set; }
Property Value
- int?
Remarks
WARNING: Using this with parallelization turned on will result in undefined behavior. Timeout is only supported when parallelization is disabled, either globally or with a parallelization-disabled test collection.
Traits
Gets or sets the traits for the theory data row.
public Dictionary<string, HashSet<string>> Traits { get; set; }
Property Value
Methods
GetData()
Override to implement GetData().
protected abstract object?[] GetData()
Returns
- object[]