Specification.

Contains<T, TType>(TType, IEqualityComparer<TType>) Method

Summary

Creates ContainsSpecification<T, TType>:

Checks if candidate contains expected element.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> Contains<T, TType>(TType expected, IEqualityComparer<TType> comparer = null) 
    where T : IEnumerable<TType>

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of candidate (collection)
TType Type of expected element in collection.

Parameters

Name Type Description
expected TType Expected element in collection.
comparer IEqualityComparer<TType> Equality comparer.

Return Value

Type Description
IComplexSpecification<T> Composed complex Specification.
GitHub