Class RangeAttribute
Supplies a range of values to an individual parameter of a parameterized test.
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = true, Inherited = false)]
public class RangeAttribute : NUnitAttribute, IParameterDataSource
- Inheritance
-
RangeAttribute
- Implements
- Inherited Members
Constructors
RangeAttribute(double, double, double)
Constructs a range of double values with the specified step size.
public RangeAttribute(double from, double to, double step)
Parameters
RangeAttribute(int, int)
Constructs a range of int values using the default step of 1.
public RangeAttribute(int from, int to)
Parameters
RangeAttribute(int, int, int)
Constructs a range of int values with the specified step size.
public RangeAttribute(int from, int to, int step)
Parameters
RangeAttribute(long, long)
Constructs a range of long values using a default step of 1.
public RangeAttribute(long from, long to)
Parameters
RangeAttribute(long, long, long)
Constructs a range of long values with the specified step size.
public RangeAttribute(long from, long to, long step)
Parameters
RangeAttribute(float, float, float)
Constructs a range of float values with the specified step size.
public RangeAttribute(float from, float to, float step)
Parameters
RangeAttribute(uint, uint)
Constructs a range of uint values using the default step of 1.
[CLSCompliant(false)]
public RangeAttribute(uint from, uint to)
Parameters
RangeAttribute(uint, uint, uint)
Constructs a range of uint values with the specified step size.
[CLSCompliant(false)]
public RangeAttribute(uint from, uint to, uint step)
Parameters
RangeAttribute(ulong, ulong)
Constructs a range of ulong values using the default step of 1.
[CLSCompliant(false)]
public RangeAttribute(ulong from, ulong to)
Parameters
RangeAttribute(ulong, ulong, ulong)
Constructs a range of ulong values with the specified step size.
[CLSCompliant(false)]
public RangeAttribute(ulong from, ulong to, ulong step)
Parameters
Methods
GetData(IParameterInfo)
Retrieves a list of arguments which can be passed to the specified parameter.
public IEnumerable GetData(IParameterInfo parameter)
Parameters
parameter
IParameterInfoThe parameter of a parameterized test.
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()