Specification.

Contains(ICompositeSpecification<string>, string) Method

Summary

Composes self Specification with ContainsSpecification:

Checks if string contains another string (case sensitive).

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<string> Contains(this ICompositeSpecification<string> self, string expected)

Attributes

Type Description
PublicAPI
NotNull

Parameters

Name Type Description
self ICompositeSpecification<string> Self specification.
expected string Expected substring.

Return Value

Type Description
IComplexSpecification<string> Composed complex Specification.

Exceptions

Type Description
System.ArgumentNullException Thrown when self is null.
GitHub