Table of Contents

Class TheoryData<T>

Namespace
Xunit
Assembly
xunit.v3.core.dll

Represents a set of data for a theory with one parameter. Data can be added to the data set using the collection initializer syntax.

public class TheoryData<T> : TheoryDataBase<TheoryDataRow<T>, T>, IReadOnlyCollection<TheoryDataRow<T>>, IEnumerable<TheoryDataRow<T>>, IEnumerable

Type Parameters

T

The parameter type.

Inheritance
TheoryData<T>
Implements
Inherited Members

Constructors

TheoryData()

Initializes a new instance of the TheoryData<T> class.

public TheoryData()

TheoryData(IEnumerable<TheoryDataRow<T>>)

Initializes a new instance of the TheoryData<T> class.

public TheoryData(IEnumerable<TheoryDataRow<T>> values)

Parameters

values IEnumerable<TheoryDataRow<T>>

The initial set of values

TheoryData(IEnumerable<T>)

Initializes a new instance of the TheoryData<T> class.

public TheoryData(IEnumerable<T> values)

Parameters

values IEnumerable<T>

The initial set of values

TheoryData(params TheoryDataRow<T>[])

Initializes a new instance of the TheoryData<T> class.

public TheoryData(params TheoryDataRow<T>[] values)

Parameters

values TheoryDataRow<T>[]

The initial set of values

TheoryData(params T[])

Initializes a new instance of the TheoryData<T> class.

public TheoryData(params T[] values)

Parameters

values T[]

The initial set of values

Methods

Convert(T)

Convert untyped values into the appropriate theory data row.

protected override TheoryDataRow<T> Convert(T row)

Parameters

row T

The raw data row

Returns

TheoryDataRow<T>