Skip to content

ReadOnlySetAssertions<TSet, T>.IsSubsetOf Method

Definition

Asserts that the set is a subset of the expected elements, i.e. every element in the set is expected.

public ReadOnlySetAssertionsChain<TSet, T> IsSubsetOf(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.