| NumericTypeT, TTypeRange Method (T, T, T, T) |
Adds a chunk of numeric values and returns a criteria for this range
Namespace:
SmartTests.Ranges
Assembly:
SmartTests (in SmartTests.dll) Version: 1.12.0
Syntax public Criteria Range(
T min,
T max,
out T value,
params T[] avoidedValues
)
Public Function Range (
min As T,
max As T,
<OutAttribute> ByRef value As T,
ParamArray avoidedValues As T()
) As Criteria
public:
virtual Criteria^ Range(
T min,
T max,
[OutAttribute] T% value,
... array<T>^ avoidedValues
) sealed
abstract Range :
min : 'T *
max : 'T *
value : 'T byref *
avoidedValues : 'T[] -> Criteria
override Range :
min : 'T *
max : 'T *
value : 'T byref *
avoidedValues : 'T[] -> Criteria
Parameters
- min
- Type: T
The minimum value of the created chunk. - max
- Type: T
The maximum value of the created chunk. - 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:
CriteriaThe criteria representing the full range.
Implements
INumericTypeTRange(T, T, T, T)See Also