ComparableAssertIsLowerThanOrEqualToT Method (T, T) |
Verifies that the specified value is lower than or equal to the threshold.
Namespace:
Enkoni.Framework.Testing
Assembly:
Enkoni.Framework.Testing (in Enkoni.Framework.Testing.dll) Version: 1.3.0.1
Syntaxpublic static void IsLowerThanOrEqualTo<T>(
T threshold,
T value
)
where T : Object, IComparable<T>
Public Shared Sub IsLowerThanOrEqualTo(Of T As {Object, IComparable(Of T)}) (
threshold As T,
value As T
)
public:
generic<typename T>
where T : Object, IComparable<T>
static void IsLowerThanOrEqualTo(
T threshold,
T value
)
static member IsLowerThanOrEqualTo :
threshold : 'T *
value : 'T -> unit when 'T : Object and IComparable<'T>
Parameters
- threshold
- Type: T
The threshold value. - value
- Type: T
The value that is expected to be lower than or equal to the threshold.
Type Parameters
- T
- The type of objects to compare.
See Also