Specification.

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

Summary

Creates GreaterThanSpecification<T>:

Checks if candidate object is greater than expected value.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

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

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of compared objects.

Parameters

Name Type Description
greaterThan T Candidate should be greater 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