Summary
Composes self Specification
with LengthSpecification<T>
:
Checks if length of candidate is equal to specific value.
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> Length<T>(this ICompositeSpecification<T> self, int length)
where T : IEnumerable
Attributes
Type |
Description |
PublicAPI |
|
NotNull |
|
Type Parameters
Name |
Description |
T |
Type of candidate to verify (collection or string). |
Parameters
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when self is null. |