NUnit.Framework.TestCaseSourceAttribute
Indicates the source to be used to provide test fixture instances for a test class.
The name parameter is a String representing the name of the source used to provide test cases. It has the following characteristics:It must be a static field, property, or method in the same class as the test case.It must return an IEnumerable or a type that implements IEnumerable, such as an array, a List, or your own iterator.Each item returned by the enumerator must be compatible with the signature of the method on which the attribute appears.
namespace NUnit.Framework
{
public class TestCaseSourceAttribute : NUnitAttribute, ITestBuilder, IImplyFixture
{
public object[] MethodParams { get; }
public string SourceName { get; }
public Type SourceType { get; }
public string Category { get; set; }
public TestCaseSourceAttribute(string sourceName);
public TestCaseSourceAttribute(Type sourceType, string sourceName, object[] methodParams);
public TestCaseSourceAttribute(Type sourceType, string sourceName);
public TestCaseSourceAttribute(string sourceName, object[] methodParams);
public TestCaseSourceAttribute(Type sourceType);
public IEnumerable<TestMethod> BuildFrom(IMethodInfo method, Test suite);
}
}