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
TheoryDataBase<TheoryDataRow<T>, T>.Count
TheoryDataBase<TheoryDataRow<T>, T>.Add(T)
TheoryDataBase<TheoryDataRow<T>, T>.Add(TheoryDataRow<T>)
TheoryDataBase<TheoryDataRow<T>, T>.AddRange(IEnumerable<T>)
TheoryDataBase<TheoryDataRow<T>, T>.AddRange(params T[])
TheoryDataBase<TheoryDataRow<T>, T>.AddRange(IEnumerable<TheoryDataRow<T>>)
TheoryDataBase<TheoryDataRow<T>, T>.AddRange(params TheoryDataRow<T>[])
TheoryDataBase<TheoryDataRow<T>, T>.Convert(T)
TheoryDataBase<TheoryDataRow<T>, T>.GetEnumerator()

Constructors

TheoryData()

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

TheoryData(IEnumerable<TheoryDataRow<T>>)

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

TheoryData(IEnumerable<T>)

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

TheoryData(params TheoryDataRow<T>[])

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

TheoryData(params T[])

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

Methods

Convert(T)

Convert untyped values into the appropriate theory data row.