Click or drag to resize

NumericTypeT, TTypeGetValidValue Method

Returns any value for this range (all values have the same probability)

Namespace:  SmartTests.Ranges
Assembly:  SmartTests (in SmartTests.dll) Version: 1.12.0
Syntax
public abstract Criteria GetValidValue(
	out T value,
	params T[] avoidedValues
)

Parameters

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: Criteria
Any Criteria so that it can be used everywhere a criteria is expected.

Implements

INumericTypeTGetValidValue(T, T)
See Also