Verifies that expected and actual sequences have the same number of elements and that the elements are equal but perhaps in a different order.

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

Syntax

C#
public static void AreElementsEqualIgnoringOrder<T>(
	IEnumerable<T> expectedSequence,
	IEnumerable<T> actualSequence,
	EqualityComparison<T> comparer
)
Visual Basic (Declaration)
Public Shared Sub AreElementsEqualIgnoringOrder(Of T) ( _
	expectedSequence As IEnumerable(Of T), _
	actualSequence As IEnumerable(Of T), _
	comparer As EqualityComparison(Of T) _
)

Parameters

expectedSequence
Type: System.Collections.Generic..::.IEnumerable<(Of <(T>)>)
The expected sequence.
actualSequence
Type: System.Collections.Generic..::.IEnumerable<(Of <(T>)>)
The actual sequence.
comparer
Type: Gallio.Common..::.EqualityComparison<(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