Skip to content

EnumerableExtensions.SequenceEqual Method ​

Definition ​

Asserts that the non-generic enumerable is sequence equal to the expected elements.

c#
public static AssertionsChain<TAssertions, T> SequenceEqual<TAssertions, T>(this ObjectAssertions<TAssertions, T> assertions, params IEnumerable<object> expected)
   where TAssertions : ObjectAssertions<TAssertions, T>
   where T : IEnumerable;

View source

Type Parameters ​

NameDescription
TAssertionsThe type of the assertions object.
TThe type of the enumerable.

Parameters ​

NameTypeDescription
assertionsObjectAssertions<TAssertions, T>The assertions object.
expectedIEnumerable<Object>The expected elements.

Returns ​

AssertionsChain<TAssertions, T>

An AssertionsChain<TAssertions, T> for chaining further assertions.