Class GreaterThanConstraint
Tests whether a value is greater than the value supplied to its constructor
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class GreaterThanConstraint : ComparisonConstraint, IConstraint, IResolveConstraint
Constructors
View SourceGreaterThanConstraint(object)
Initializes a new instance of the GreaterThanConstraint class.
Declaration
public GreaterThanConstraint(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 |