Specification.

NotLessThan<T>(T, IComparer<T>) Method

Summary

Creates LessThanSpecification<T> negation:

Checks if candidate object is not lower than (greater than or equal to) expected value.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> NotLessThan<T>(T notLessThan, IComparer<T> comparer = null)

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of compared objects.

Parameters

Name Type Description
notLessThan T Candidate should not be less than value.
comparer IComparer<T> Comparer.

Return Value

Type Description
IComplexSpecification<T> New complex Specification.

Exceptions

Type Description
System.ArgumentException Thrown when T has no valid comparison methods.
GitHub