Table of Contents

Class TheoryDataRow<T1, T2>

Namespace
Xunit
Assembly
xunit.v3.core.dll

Implementation of ITheoryDataRow which accepts two typed values.

public sealed class TheoryDataRow<T1, T2> : TheoryDataRowBase, ITheoryDataRow

Type Parameters

T1

The first parameter type.

T2

The second parameter type.

Inheritance
TheoryDataRow<T1, T2>
Implements
Inherited Members
Extension Methods

Remarks

Initializes a new instance of the TheoryDataRow<T1, T2> class, encapsulating the two items of typed data.

Constructors

TheoryDataRow(T1, T2)

Implementation of ITheoryDataRow which accepts two typed values.

public TheoryDataRow(T1 p1, T2 p2)

Parameters

p1 T1

The first data value.

p2 T2

The second data value.

Remarks

Initializes a new instance of the TheoryDataRow<T1, T2> class, encapsulating the two items of typed data.

Properties

Data

Gets the row of data.

public (T1, T2) Data { get; }

Property Value

(T1, T2)

Methods

GetData()

Override to implement GetData().

protected override object?[] GetData()

Returns

object[]

Operators

implicit operator TheoryDataRow<T1, T2>((T1, T2))

public static implicit operator TheoryDataRow<T1, T2>((T1, T2) row)

Parameters

row (T1, T2)

Returns

TheoryDataRow<T1, T2>