Table of Contents

Interface ITheoryDataRow

Namespace
Xunit
Assembly
xunit.v3.core.dll

Represents a single row of theory data, along with optional metadata attached to the row.

public interface ITheoryDataRow

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.

Label

Gets the label to use for the data row. This value is used to help format the display name of the test.

Skip

Gets the skip reason for the test. When null is returned, the test is not skipped.

SkipType

Gets the type to retrieve SkipUnless or SkipWhen from. If not set, then the property will be retrieved from the unit test class.

SkipUnless

Gets the name of a public static property on the test class which returns bool to indicate whether the test should be skipped (false) or not (true).

SkipWhen

Gets the name of a public static property on the test class which returns bool to indicate whether the test should be skipped (true) or not (false).

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).

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.

Traits

Gets the trait values associated with this theory data row. If there are none, you may either return a null or empty dictionary.

Methods

GetData()

Gets the theory data.