Table of Contents

Class GreaterThanConstraint

Namespace
NUnit.Framework.Constraints
Assembly
nunit.framework.dll

Tests whether a value is greater than the value supplied to its constructor

public class GreaterThanConstraint : ComparisonConstraint, IConstraint, IResolveConstraint
Inheritance
GreaterThanConstraint
Implements
Inherited Members

Constructors

GreaterThanConstraint(object)

Initializes a new instance of the GreaterThanConstraint class.

public GreaterThanConstraint(object expected)

Parameters

expected object

The expected value.

Methods

PerformComparison(ComparisonAdapter, object, object, Tolerance)

Perform the comparison

protected override bool PerformComparison(ComparisonAdapter comparer, object actual, object expected, Tolerance tolerance)

Parameters

comparer ComparisonAdapter
actual object
expected object
tolerance Tolerance

Returns

bool