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
TThe parameter type.
- Inheritance
-
TheoryDataBase<TheoryDataRow<T>, T>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
valuesIEnumerable<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
valuesIEnumerable<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
valuesTheoryDataRow<T>[]The initial set of values
TheoryData(params T[])
Initializes a new instance of the TheoryData<T> class.
public TheoryData(params T[] values)
Parameters
valuesT[]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
rowTThe raw data row