| INumericTypeTBelow Method (T, T, T) |
Creates a range of numeric values below max and returns a criteria for this range
Namespace:
SmartTests.Ranges
Assembly:
SmartTests (in SmartTests.dll) Version: 1.12.0
Syntax Criteria Below(
T max,
out T value,
params T[] avoidedValues
)
Function Below (
max As T,
<OutAttribute> ByRef value As T,
ParamArray avoidedValues As T()
) As Criteria
Criteria^ Below(
T max,
[OutAttribute] T% value,
... array<T>^ avoidedValues
)
abstract Below :
max : 'T *
value : 'T byref *
avoidedValues : 'T[] -> Criteria
Parameters
- max
- Type: T
The max value (excluded) 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:
CriteriaAny
Criteria so that it can be used everywhere a criteria is expected.
See Also