| 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
)
Public Function GetValidValue(Of T) (
values As T(),
<OutAttribute> ByRef value As T,
ParamArray avoidedValues As T()
) As Criteria
public:
generic<typename T>
Criteria^ GetValidValue(
array<T>^ values,
[OutAttribute] T% value,
... array<T>^ avoidedValues
)
member GetValidValue :
values : 'T[] *
value : 'T byref *
avoidedValues : 'T[] -> Criteria
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:
CriteriaThe criteria representing the full range.
See Also