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.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.2.0.0 (3.2.371.0)
Syntax
| C# |
|---|
public static void AreElementsEqualIgnoringOrder<T>( IEnumerable<T> expectedSequence, IEnumerable<T> actualSequence, IEqualityComparer<T> comparer ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub AreElementsEqualIgnoringOrder(Of T) ( _ expectedSequence As IEnumerable(Of T), _ actualSequence As IEnumerable(Of T), _ comparer As IEqualityComparer(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: 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
| Exception | Condition |
|---|---|
| Gallio.Framework.Assertions..::.AssertionException | Thrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise. |
