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

TestCaseSourceAttribute

FactoryAttribute indicates the source to be used to provide test cases for a test method.
public string Category { get; set; }

Gets or sets the category associated with this test. May be a single category or a comma-separated list.

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 data source, which must be a property, field or method of the test class itself.

public TestCaseSourceAttribute(Type sourceType)

Construct with a Type, which must implement IEnumerable

public TestCaseSourceAttribute(Type sourceType, string sourceName)

Construct with a Type and name. that don't support params arrays.