Specification.

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

Summary

Creates ExclusiveBetweenSpecification<T>:

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

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> ExclusiveBetween<T>(T from, T to, IComparer<T> comparer = null)

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of compared objects.

Parameters

Name Type Description
from T Min candidate value.
to T Max candidate value.
comparer IComparer<T> Comparer.

Return Value

Type Description
IComplexSpecification<T> New complex Specification.

Exceptions

Type Description
System.ArgumentException Thrown when from is greater than to.
GitHub