Click or drag to resize

EnumTypeGetValidValueT Method

Adds enum values to test for as an equivalence class.

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

Parameters

values
Type: T
The other values as an equivalence class for the current test.
value
Type: T
A random value within these values.
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.

Type Parameters

T
An enum type.

Return Value

Type: Criteria
The criteria representing the full range.
See Also