Table of Contents

Class LessThanConstraint

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

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

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

Constructors

LessThanConstraint(object)

Initializes a new instance of the LessThanConstraint class.

public LessThanConstraint(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