Skip to content

ReadOnlySetAssertions<TSet, T>.SetEquals Method

Definition

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

public ReadOnlySetAssertionsChain<TSet, T> SetEquals(params IEnumerable<T> expected);

Parameters

Name Type Description
expected IEnumerable<T> The expected elements.

Returns

ReadOnlySetAssertionsChain<TSet, T>

A ReadOnlySetAssertionsChain<TSet, T> for chaining further assertions.