<PackageReference Include="nunit" Version="2.5.7.10213" />

TestCaseSourceAttribute

FactoryAttribute indicates the source to be used to provide test cases for 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 TestCaseSourceAttribute(string sourceName)

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

public TestCaseSourceAttribute(Type sourceType, string sourceName)

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