Table of Contents

Class RangeAttribute

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

RangeAttribute is used to supply a range of _values to an individual parameter of a parameterized test.

public class RangeAttribute : ValuesAttribute, IParameterDataSource
Inheritance
RangeAttribute
Implements
Inherited Members

Constructors

RangeAttribute(double, double, double)

Construct a range of doubles

public RangeAttribute(double from, double to, double step)

Parameters

from double
to double
step double

RangeAttribute(int, int)

Construct a range of ints using default step of 1

public RangeAttribute(int from, int to)

Parameters

from int
to int

RangeAttribute(int, int, int)

Construct a range of ints specifying the step size

public RangeAttribute(int from, int to, int step)

Parameters

from int
to int
step int

RangeAttribute(long, long, long)

Construct a range of longs

public RangeAttribute(long from, long to, long step)

Parameters

from long
to long
step long

RangeAttribute(float, float, float)

Construct a range of floats

public RangeAttribute(float from, float to, float step)

Parameters

from float
to float
step float