Skip to content

ReadOnlySetAssertions<TSet, T>.SetEquals Method ​

Definition ​

Asserts that the set contains exactly the expected elements, ignoring order and duplicates.

c#
public AssertionsChain<ReadOnlySetAssertions<TSet, T>, TSet> SetEquals(params IEnumerable<T> expected);

View source

Parameters ​

NameTypeDescription
expectedIEnumerable<T>The expected elements.

Returns ​

AssertionsChain<ReadOnlySetAssertions<TSet, T>, TSet>

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