Specification.

MinLength<T>(int) Method

Summary

Creates MinLengthSpecification<T>:

Checks if length of candidate is greater than or equal to Min value.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> MinLength<T>(int minLength) where T : IEnumerable

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of candidate to verify (collection or string).

Parameters

Name Type Description
minLength int Minimum candidate length.

Return Value

Type Description
IComplexSpecification<T> New complex Specification.
GitHub