Class TheoryData<T1, T2>
- Namespace
- Xunit
- Assembly
- xunit.v3.core.dll
Represents a set of data for a theory with two parameters. Data can be added to the data set using the collection initializer syntax.
public class TheoryData<T1, T2> : TheoryDataBase<TheoryDataRow<T1, T2>, (T1, T2)>, IReadOnlyCollection<TheoryDataRow<T1, T2>>, IEnumerable<TheoryDataRow<T1, T2>>, IEnumerable
Type Parameters
T1
The first parameter type.
T2
The second parameter type.
- Inheritance
-
TheoryDataBase<TheoryDataRow<T1, T2>, (T1, T2)>TheoryData<T1, T2>
- Implements
-
IReadOnlyCollection<TheoryDataRow<T1, T2>>IEnumerable<TheoryDataRow<T1, T2>>
- Derived
- Inherited Members
-
TheoryDataBase<TheoryDataRow<T1, T2>, (T1, T2)>.CountTheoryDataBase<TheoryDataRow<T1, T2>, (T1, T2)>.Add((T1, T2))TheoryDataBase<TheoryDataRow<T1, T2>, (T1, T2)>.Add(TheoryDataRow<T1, T2>)TheoryDataBase<TheoryDataRow<T1, T2>, (T1, T2)>.AddRange(IEnumerable<(T1, T2)>)TheoryDataBase<TheoryDataRow<T1, T2>, (T1, T2)>.AddRange(params (T1, T2)[])TheoryDataBase<TheoryDataRow<T1, T2>, (T1, T2)>.AddRange(IEnumerable<TheoryDataRow<T1, T2>>)TheoryDataBase<TheoryDataRow<T1, T2>, (T1, T2)>.AddRange(params TheoryDataRow<T1, T2>[])TheoryDataBase<TheoryDataRow<T1, T2>, (T1, T2)>.Convert((T1, T2))TheoryDataBase<TheoryDataRow<T1, T2>, (T1, T2)>.GetEnumerator()
Constructors
- TheoryData()
Initializes a new instance of the TheoryData<T1, T2> class.
- TheoryData(IEnumerable<(T1, T2)>)
Initializes a new instance of the TheoryData<T1, T2> class.
- TheoryData(IEnumerable<TheoryDataRow<T1, T2>>)
Initializes a new instance of the TheoryData<T1, T2> class.
- TheoryData(params (T1, T2)[])
Initializes a new instance of the TheoryData<T1, T2> class.
- TheoryData(params TheoryDataRow<T1, T2>[])
Initializes a new instance of the TheoryData<T1, T2> class.
Methods
- Add(T1, T2)
Adds data to the theory data set.
- Convert((T1, T2))
Convert untyped values into the appropriate theory data row.