Specification.

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

Summary

Creates GreaterThanOrEqualSpecification<T>:

Checks if candidate object is greater than or equal to expected value.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> GreaterThanOrEqual<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 or equal to 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