Summary
Supplies a range of values to an individual parameter of a parameterized test.
- Namespace
- TCLite
- Interfaces
- Base Types
-
- object
- Attribute
- TCLiteAttribute
- DataParamAttribute
graph BT
Type-->Base0["DataParamAttribute"]
click Base0 "/tc-lite/api/TCLite/DataParamAttribute"
Base0-->Base1["TCLiteAttribute"]
click Base1 "/tc-lite/api/TCLite/TCLiteAttribute"
Base1-->Base2["Attribute"]
Base2-->Base3["object"]
Type-.->Interface0["IParameterDataSource"]
click Interface0 "/tc-lite/api/TCLite.Interfaces/IParameterDataSource"
Type["RangeAttribute"]
class Type type-node
Syntax
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = true, Inherited = false)]
public class RangeAttribute : DataParamAttribute, IParameterDataSource
Attributes
Type | Description |
---|---|
Attribute |
Constructors
Name | Summary |
---|---|
RangeAttribute |
Constructs a range of double values with the specified step size.
|
RangeAttribute |
Constructs a range of float values with the specified step size.
|
RangeAttribute |
Constructs a range of int values with the specified step size.
|
RangeAttribute |
Constructs a range of int values using the default step of 1.
|
RangeAttribute |
Constructs a range of System.Int64 values with the specified step size.
|
RangeAttribute |
Constructs a range of long values using a default step of 1.
|
RangeAttribute |
Constructs a range of System.UInt32 values with the specified step size.
|
RangeAttribute |
Constructs a range of uint values using the default step of 1.
|
RangeAttribute |
Constructs a range of ulong values with the specified step size.
|
RangeAttribute |
Constructs a range of ulong values using the default step of 1.
|
Methods
Name | Value | Summary |
---|---|---|
Convert |
object |
Converts a single value to the targetType, if it is supported.
Inherited from DataParamAttribute
static
|
ConvertData |
IEnumerable |
Converts an array of objects to the targetType, if it is supported.
Inherited from DataParamAttribute
static
|
GetData |
IEnumerable |
Retrieves a list of arguments which can be passed to the specified parameter.
|
ToString |
string |
Returns a string that represents the current object.
|
TryConvert |
bool |
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.
Inherited from DataParamAttribute
static
|