| INumericTypeTRange Method (T, Boolean, T, Boolean, T, T) |
Adds a chunk of numeric values
Namespace:
SmartTests.Ranges
Assembly:
SmartTests (in SmartTests.dll) Version: 1.12.0
Syntax Criteria Range(
T min,
bool minIncluded,
T max,
bool maxIncluded,
out T value,
params T[] avoidedValues
)
Function Range (
min As T,
minIncluded As Boolean,
max As T,
maxIncluded As Boolean,
<OutAttribute> ByRef value As T,
ParamArray avoidedValues As T()
) As Criteria
Criteria^ Range(
T min,
bool minIncluded,
T max,
bool maxIncluded,
[OutAttribute] T% value,
... array<T>^ avoidedValues
)
abstract Range :
min : 'T *
minIncluded : bool *
max : 'T *
maxIncluded : bool *
value : 'T byref *
avoidedValues : 'T[] -> Criteria
Parameters
- min
- Type: T
The min value (included) of the chunk. - minIncluded
- Type: SystemBoolean
true to include min, false otherwise. - max
- Type: T
The max value (included) of the chunk. - maxIncluded
- Type: SystemBoolean
true to include max, false otherwise. - value
- Type: T
A random value within this range. - avoidedValues
- Type: T
A value to avoid in the range.
For example, when testing a property setter with a different value, you do not want the value to be the current
value, even if it is within the tested range.
Return Value
Type:
CriteriaReturn
this so that adding chunks can be chained.
See Also