<PackageReference Include="NUnit" Version="4.2.1" />

ValueSourceAttribute

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

The name of a the method, property or field 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.

Retrieves a list of arguments which can be passed to the specified parameter.