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
-
TheoryDataBase<TheoryDataRow<T>, T>TheoryData<T>
- Implements
- Inherited Members
-
TheoryDataBase<TheoryDataRow<T>, T>.CountTheoryDataBase<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.