Verifies that expected and actual sequences have the same number of elements and
that the elements are equal and in the same order.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.2.0.0 (3.2.570.0)
Syntax
| C# |
|---|
public static void AreElementsEqual<T>( IEnumerable<T> expectedSequence, IEnumerable<T> actualSequence, IEqualityComparer<T> comparer, string messageFormat, params Object[] messageArgs ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub AreElementsEqual(Of T) ( _ expectedSequence As IEnumerable(Of T), _ actualSequence As IEnumerable(Of T), _ comparer As IEqualityComparer(Of T), _ messageFormat As String, _ ParamArray messageArgs As Object() _ ) |
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.
- messageFormat
- Type: System..::.String
The custom assertion message format, or null if none.
- messageArgs
- Type: array<
System..::.Object
>[]()[]
The custom assertion message arguments, or null if none.
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. |
