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