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)

Construct a range of longs using a default step of 1

public RangeAttribute(long from, long to)

Parameters

from long
to long

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

RangeAttribute(uint, uint)

Construct a range of unsigned ints using default step of 1

[CLSCompliant(false)]
public RangeAttribute(uint from, uint to)

Parameters

from uint
to uint

RangeAttribute(uint, uint, uint)

Construct a range of unsigned ints specifying the step size

[CLSCompliant(false)]
public RangeAttribute(uint from, uint to, uint step)

Parameters

from uint
to uint
step uint

RangeAttribute(ulong, ulong)

Construct a range of unsigned longs using default step of 1

[CLSCompliant(false)]
public RangeAttribute(ulong from, ulong to)

Parameters

from ulong
to ulong

RangeAttribute(ulong, ulong, ulong)

Construct a range of unsigned longs specifying the step size

[CLSCompliant(false)]
public RangeAttribute(ulong from, ulong to, ulong step)

Parameters

from ulong
to ulong
step ulong