Class TheoryData<T1, T2, T3, T4, T5, T6, T7>
- Namespace
- Xunit
- Assembly
- xunit.v3.core.dll
Represents a set of data for a theory with seven parameters. Data can be added to the data set using the collection initializer syntax.
public class TheoryData<T1, T2, T3, T4, T5, T6, T7> : TheoryDataBase<TheoryDataRow<T1, T2, T3, T4, T5, T6, T7>, (T1, T2, T3, T4, T5, T6, T7)>, IReadOnlyCollection<TheoryDataRow<T1, T2, T3, T4, T5, T6, T7>>, IEnumerable<TheoryDataRow<T1, T2, T3, T4, T5, T6, T7>>, IEnumerable
Type Parameters
T1The first parameter type.
T2The second parameter type.
T3The third parameter type.
T4The fourth parameter type.
T5The fifth parameter type.
T6The sixth parameter type.
T7The seventh parameter type.
- Inheritance
-
TheoryDataBase<TheoryDataRow<T1, T2, T3, T4, T5, T6, T7>, (T1, T2, T3, T4, T5, T6, T7)>TheoryData<T1, T2, T3, T4, T5, T6, T7>
- Implements
-
IReadOnlyCollection<TheoryDataRow<T1, T2, T3, T4, T5, T6, T7>>IEnumerable<TheoryDataRow<T1, T2, T3, T4, T5, T6, T7>>
- Derived
- Inherited Members
Constructors
TheoryData()
Initializes a new instance of the TheoryData<T1, T2, T3, T4, T5, T6, T7> class.
public TheoryData()
TheoryData(IEnumerable<(T1, T2, T3, T4, T5, T6, T7)>)
Initializes a new instance of the TheoryData<T1, T2, T3, T4, T5, T6, T7> class.
public TheoryData(IEnumerable<(T1, T2, T3, T4, T5, T6, T7)> values)
Parameters
valuesIEnumerable<(T1, T2, T3, T4, T5, T6, T7)>The initial set of values
TheoryData(IEnumerable<TheoryDataRow<T1, T2, T3, T4, T5, T6, T7>>)
Initializes a new instance of the TheoryData<T1, T2, T3, T4, T5, T6, T7> class.
public TheoryData(IEnumerable<TheoryDataRow<T1, T2, T3, T4, T5, T6, T7>> values)
Parameters
valuesIEnumerable<TheoryDataRow<T1, T2, T3, T4, T5, T6, T7>>The initial set of values
TheoryData(params (T1, T2, T3, T4, T5, T6, T7)[])
Initializes a new instance of the TheoryData<T1, T2, T3, T4, T5, T6, T7> class.
public TheoryData(params (T1, T2, T3, T4, T5, T6, T7)[] values)
Parameters
values(T1, T2, T3, T4, T5, T6, T7)[]The initial set of values
TheoryData(params TheoryDataRow<T1, T2, T3, T4, T5, T6, T7>[])
Initializes a new instance of the TheoryData<T1, T2, T3, T4, T5, T6, T7> class.
public TheoryData(params TheoryDataRow<T1, T2, T3, T4, T5, T6, T7>[] values)
Parameters
valuesTheoryDataRow<T1, T2, T3, T4, T5, T6, T7>[]The initial set of values
Methods
Add(T1, T2, T3, T4, T5, T6, T7)
Adds data to the theory data set.
public void Add(T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7)
Parameters
p1T1The first data value.
p2T2The second data value.
p3T3The third data value.
p4T4The fourth data value.
p5T5The fifth data value.
p6T6The sixth data value.
p7T7The seventh data value.
Convert((T1, T2, T3, T4, T5, T6, T7))
Convert untyped values into the appropriate theory data row.
protected override TheoryDataRow<T1, T2, T3, T4, T5, T6, T7> Convert((T1, T2, T3, T4, T5, T6, T7) row)
Parameters
row(T1, T2, T3, T4, T5, T6, T7)The raw data row
Returns
- TheoryDataRow<T1, T2, T3, T4, T5, T6, T7>