Summary
Composes self Specification
with GreaterThanSpecification<T>
negation:
Checks if candidate object is not greater than (lower than or equal to) expected value.
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> NotGreaterThan<T>(this ICompositeSpecification<T> self, T notGreaterThan, IComparer<T> comparer = null)
Attributes
Type |
Description |
PublicAPI |
|
NotNull |
|
Type Parameters
Name |
Description |
T |
Type of compared objects. |
Parameters
Name |
Type |
Description |
self |
ICompositeSpecification<T> |
Self specification. |
notGreaterThan |
T |
Candidate should not be greater than value. |
comparer |
IComparer<T> |
Comparer. |
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when self is null. |
System.ArgumentException |
Thrown when T has no valid comparison methods. |