ComparableAssertIsLowerThanT Method (T, T, String) |
Verifies that the specified value is lower than the threshold.
Namespace:
Enkoni.Framework.Testing
Assembly:
Enkoni.Framework.Testing (in Enkoni.Framework.Testing.dll) Version: 1.3.0.1
Syntaxpublic static void IsLowerThan<T>(
T threshold,
T value,
string message
)
where T : Object, IComparable<T>
Public Shared Sub IsLowerThan(Of T As {Object, IComparable(Of T)}) (
threshold As T,
value As T,
message As String
)
public:
generic<typename T>
where T : Object, IComparable<T>
static void IsLowerThan(
T threshold,
T value,
String^ message
)
static member IsLowerThan :
threshold : 'T *
value : 'T *
message : string -> 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 the threshold. - message
- Type: SystemString
A message to display if the assertion fails. This message can be seen in the unit test results.
Type Parameters
- T
- The type of objects to compare.
See Also