Verifies that the left value is less than or equal to the right value according to a particular comparer.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public static void LessThanOrEqualTo<T>( T left, T right, IComparer<T> comparer ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub LessThanOrEqualTo(Of T) ( _ left As T, _ right As T, _ comparer As IComparer(Of T) _ ) |
Parameters
- left
- Type: T
The expected value.
- right
- Type: T
The actual value.
- comparer
- Type: System.Collections.Generic..::.IComparer<(Of <(T>)>)
The comparer to use, or null to use the default one.
Type Parameters
- T
- The type of value.
Exceptions
| Exception | Condition |
|---|---|
| Gallio.Framework.Assertions..::.AssertionException | Thrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise. |
