Table of Contents

Method GetTheoryDataRowFactories

Namespace
Xunit.v3
Assembly
xunit.v3.core.aot.dll

GetTheoryDataRowFactories(ICodeGenTestMethod)

Gets the theory data row factories associated with the given test method.

public static IReadOnlyCollection<(Func<DisposalTracker, ValueTask<IReadOnlyCollection<ITheoryDataRow>>> Factory, bool DisableDiscoveryEnumeration)> GetTheoryDataRowFactories(ICodeGenTestMethod testMethod)

Parameters

testMethod

The test method

Returns

IReadOnlyCollection<(Func<DisposalTracker, ValueTask<IReadOnlyCollection<ITheoryDataRow>>> Factory, bool DisableDiscoveryEnumeration)>

Remarks

It is expected that data attributes will have registered factories via RegisterTheoryDataRowFactory(string, string, bool, Func<DisposalTracker, ValueTask<IReadOnlyCollection<ITheoryDataRow>>>). This will return an empty array when no factories have been registered for the given test method.