<PackageReference Include="NUnit" Version="3.0.0-alpha-5" />

ValueSourceAttribute

ValueSourceAttribute indicates the source to be used to provide data for one parameter of a test method.
public string SourceName { get; }

The name of a the method, property or fiend to be used as a source

public Type SourceType { get; }

A Type to be used as a source

public ValueSourceAttribute(string sourceName)

Construct with the name of the factory - for use with languages that don't support params arrays.

public ValueSourceAttribute(Type sourceType, string sourceName)

Construct with a Type and name - for use with languages that don't support params arrays.

public IEnumerable GetData(ParameterInfo parameter)

Gets an enumeration of data items for use as arguments for a test method parameter.