Verifies that an actual value equals some expected value according to a particular comparer.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.2.0.0 (3.2.570.0)

Syntax

C#
public static void AreEqual<T>(
	T expectedValue,
	T actualValue,
	IEqualityComparer<T> comparer
)
Visual Basic (Declaration)
Public Shared Sub AreEqual(Of T) ( _
	expectedValue As T, _
	actualValue As T, _
	comparer As IEqualityComparer(Of T) _
)

Parameters

expectedValue
Type: T
The expected value.
actualValue
Type: T
The actual value.
comparer
Type: System.Collections.Generic..::.IEqualityComparer<(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