Class LessThanConstraint
Tests whether a value is less than the value supplied to its constructor
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class LessThanConstraint : ComparisonConstraint, IConstraint, IResolveConstraint
Constructors
View SourceLessThanConstraint(object)
Initializes a new instance of the LessThanConstraint class.
Declaration
public LessThanConstraint(object expected)
Parameters
Type | Name | Description |
---|---|---|
object | expected | The expected value. |
Methods
View SourcePerformComparison(ComparisonAdapter, object, object, Tolerance)
Perform the comparison
Declaration
protected override bool PerformComparison(ComparisonAdapter comparer, object actual, object expected, Tolerance tolerance)
Parameters
Type | Name | Description |
---|---|---|
ComparisonAdapter | comparer | |
object | actual | |
object | expected | |
Tolerance | tolerance |
Returns
Type | Description |
---|---|
bool |