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

TestFixtureSourceAttribute

Identifies the source used to provide test fixture instances for a test class.
public const string MUST_BE_STATIC = "The sourceName specified on a TestCaseSourceAttribute must refer to a static field, property or method."

Error message string is public so the tests can use it

public string Category { get; set; }

Gets or sets the category associated with every fixture created from this attribute. May be a single category or a comma-separated list.

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 TestFixtureSourceAttribute(string sourceName)

Construct with the name of the method, property or field that will provide data

public TestFixtureSourceAttribute(Type sourceType, string sourceName)

Construct with a Type and name

public TestFixtureSourceAttribute(Type sourceType)

Construct with a Type

Builds any number of test fixtures from the specified type.

Builds any number of test fixtures from the specified type.

Returns a set of ITestFixtureData items for use as arguments to a parameterized test fixture.