Method ConvertDataRow
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
ConvertDataRow(object)
Converts an item yielded by the data attribute to an ITheoryDataRow, for return from GetData(MethodInfo, DisposalTracker). Items yielded will typically be object[], ITheoryDataRow, or System.Runtime.CompilerServices.ITuple, but this override will allow derived attribute types to support additional data items. If the data item cannot be converted, this method will throw ArgumentException.
protected virtual ITheoryDataRow ConvertDataRow(object dataRow)
Parameters
dataRowobjectAn item yielded from the data member.
Returns
An ITheoryDataRow suitable for return from GetData(MethodInfo, DisposalTracker).
Exceptions
- ArgumentException
Thrown when
dataRowdoes not point to a valid data row.