Summary
Creates LessThanSpecification<T>
negation for candidate property:
Checks if candidate property is not lower than (greater than or equal to) expected value.
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> NotLessThan<T, TProperty>(Expression<Func<T, TProperty>> selector, TProperty notLessThan, IComparer<TProperty> comparer = null)
Attributes
Type |
Description |
PublicAPI |
|
NotNull |
|
Type Parameters
Name |
Description |
T |
Type of candidate. |
TProperty |
Type of compared objects. |
Parameters
Name |
Type |
Description |
selector |
Expression<Func<T, TProperty>> |
Candidate property selector. |
notLessThan |
TProperty |
Candidate property should not be less than value. |
comparer |
IComparer<TProperty> |
Comparer. |
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when selector is null. |
System.ArgumentException |
Thrown when selector is not valid. |
System.ArgumentException |
Thrown when TProperty has no valid comparison methods. |