Specification.

NotLengthBetween<T>(int, int) Method

Summary

Creates LengthBetweenSpecification<T> negation:

Checks if length of candidate is not between Min and Max values.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> NotLengthBetween<T>(int minLength, int maxLength) 
    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 Not minimum candidate length.
maxLength int Not maximum candidate length.

Return Value

Type Description
IComplexSpecification<T> New complex Specification.
GitHub