Specification.

NotExclusiveBetween<T>(ICompositeSpecification<T>, T, T, IComparer<T>) Method

Summary

Composes self Specification with ExclusiveBetweenSpecification<T> negation:

Checks if candidate object is not between (exclusive) min and max value.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> NotExclusiveBetween<T>(this ICompositeSpecification<T> self, T notFrom, T notTo, 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.
notFrom T Not min candidate value.
notTo T Not max candidate value.
comparer IComparer<T> Comparer.

Return Value

Type Description
IComplexSpecification<T> Composed complex Specification.

Exceptions

Type Description
System.ArgumentNullException Thrown when self is null.
System.ArgumentException Thrown when notFrom is greater than notTo.
GitHub