Base class for attributes, which provide test arguments directly in the attribute constructor. Since .NET severely restricts the data Types, which may be used in this context, the attribute tries to simulate what that might have been provided in a direct method call.
This class is unsealed and may be inherited by custom user attributes that take test arguments directly.
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Parameter, AllowMultiple = true, Inherited = false)] public class DataParamAttribute : TCLiteAttribute
Converts a single value to the targetType, if it is supported.
Converts an array of objects to the targetType, if it is supported.
Performs several special conversions allowed by NUnit in order to permit arguments with types that cannot be used in the constructor of an Attribute such as TestCaseAttribute or to simplify their use.