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

TestCaseSourceAttribute

TestCaseSourceAttribute 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 method, property or field that will prvide data

public TestCaseSourceAttribute(Type sourceType, string sourceName, object[] constructorParameters)

Construct with a Type and name

public TestCaseSourceAttribute(Type sourceType)

Construct with a Type

Construct one or more TestMethods from a given MethodInfo, using available parameter data.

Returns a set of ITestCaseDataItems for use as arguments to a parameterized test method.