Verifies that a test value is between left and right values according to a particular comparer.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.459.0)

Syntax

C#
public static void Between<T>(
	T actualValue,
	T minimum,
	T maximum,
	Comparison<T> comparer
)
Visual Basic (Declaration)
Public Shared Sub Between(Of T) ( _
	actualValue As T, _
	minimum As T, _
	maximum As T, _
	comparer As Comparison(Of T) _
)

Parameters

actualValue
Type: T
The actual value.
minimum
Type: T
Inclusive minimum value.
maximum
Type: T
Inclusive maximum value.
comparer
Type: System..::.Comparison<(Of <(T>)>)
The comparer to use, or null to use the default one.

Type Parameters

T
The type of value.

Exceptions

ExceptionCondition
Gallio.Framework.Assertions..::.AssertionExceptionThrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise.

See Also