Specification.

Length<T>(int) Method

Summary

Creates LengthSpecification<T>:

Checks if length of candidate is equal to specific value.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> Length<T>(int length) 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
length int Expected candidate length.

Return Value

Type Description
IComplexSpecification<T> New complex Specification.
GitHub