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 |
---|---|
I |
New complex Specification . |