Summary
    Abstract base class for constraints that compare values to
    determine if one is greater than, equal to or less than
    the other. This class supplies the Using modifiers.
    
		- Namespace
 - TCLite
.Constraints  - Interfaces
 - Base Types
 - Derived Types
 
							graph BT
	Type-->Base0["ExpectedValueConstraint<TExpected>"]
	Base0-->Base1["Constraint"]
	click Base1 "/tc-lite/api/TCLite.Constraints/Constraint"
	Base1-->Base2["object"]
	Type-.->Interface0["IConstraint"]
	click Interface0 "/tc-lite/api/TCLite.Constraints/IConstraint"
	Type-.->Interface1["IResolveConstraint"]
	click Interface1 "/tc-lite/api/TCLite.Constraints/IResolveConstraint"
	Type["ComparisonConstraint<TExpected>"]
class Type type-node
	Derived0["LessThanOrEqualConstraint<TExpected>"]-->Type
	click Derived0 "/tc-lite/api/TCLite.Constraints/LessThanOrEqualConstraint_1"
	Derived1["GreaterThanConstraint<TExpected>"]-->Type
	click Derived1 "/tc-lite/api/TCLite.Constraints/GreaterThanConstraint_1"
	Derived2["LessThanConstraint<TExpected>"]-->Type
	click Derived2 "/tc-lite/api/TCLite.Constraints/LessThanConstraint_1"
	Derived3["GreaterThanOrEqualConstraint<TExpected>"]-->Type
	click Derived3 "/tc-lite/api/TCLite.Constraints/GreaterThanOrEqualConstraint_1"
						
					Syntax
public abstract class ComparisonConstraint<TExpected> : ExpectedValueConstraint<TExpected>, 
    IConstraint, IResolveConstraint
	Type Parameters
| Name | Description | 
|---|---|
| TExpected | 
Constructors
| Name | Summary | 
|---|---|
| ComparisonConstraint | 
									
    Initializes a new instance of the ComparisonConstraint class.
     | 
							
Properties
| Name | Value | Summary | 
|---|---|---|
| And | ConstraintExpression | 
									 
    Returns a ConstraintExpression by appending And
    to the current constraint.
     
											Inherited from Constraint 
								 | 
							
| Arguments | object[] | 
									 
    Arguments provided to this Constraint, for use in
    formatting the description.
     
											Inherited from Constraint 
								 | 
							
| Builder | ConstraintBuilder | 
									 
    A ConstraintBuilder holding this constraint. If not null
    the constraint is under construction.
     
											Inherited from Constraint 
								 | 
							
| Comparer | ComparisonAdapter | 
									 
    ComparisonAdapter to be used in making the comparison
     
								 | 
							
| Description | string | 
									 
    The Description of what this constraint tests, for
    use in messages and in the ConstraintResult.
     
											Inherited from Constraint 
								 | 
							
| DisplayName | string | 
									 
    The display name of this Constraint for use by ToString().
    The default value is the name of the constraint with
    trailing "Constraint" removed. Derived classes may set
    this to another name in their constructors.
     
											Inherited from Constraint 
								 | 
							
| Or | ConstraintExpression | 
									 
    Returns a ConstraintExpression by appending Or
    to the current constraint.
     
											Inherited from Constraint 
								 | 
							
| With | ConstraintExpression | 
									 
    Returns a ConstraintExpression by appending And
    to the current constraint.
     
											Inherited from Constraint 
								 | 
							
Methods
| Name | Value | Summary | 
|---|---|---|
| ApplyConstraint | 
								ConstraintResult | 
									 
    Applies the constraint to an ActualValueDelegate that returns
    the value to be tested. The default implementation simply evaluates
    the delegate but derived classes may override it to provide for
    delayed processing.
     
											Inherited from Constraint 
								 | 
							
| ApplyConstraint | 
								ConstraintResult | 
									 
    Test whether the constraint is satisfied by a given value   
     
								 | 
							
| ApplyConstraint | 
								ConstraintResult | 
									 
    Test whether the constraint is satisfied by a given reference.
    The default implementation simply dereferences the value but
    derived classes may override it to provide for delayed processing.
     
											Inherited from Constraint 
								 | 
							
| ApplyTo | 
								ConstraintResult | 
									 
    Validates the ActualValueDelegate and applies the constraint
    to the value it returns.
     
											Inherited from Constraint 
								 | 
							
| ApplyTo | 
								ConstraintResult | 
									 
    Validates the actual value argument and applies the constraint 
    to it, returning a ConstraintResult.
     
											Inherited from Constraint 
								 | 
							
| ApplyTo | 
								ConstraintResult | 
									 
    Validates the actual value argument and applies the constraint 
    to it, returning a ConstraintResult.
     
											Inherited from Constraint 
								 | 
							
| Get | 
								string | 
									 
    Returns the string representation of this constraint
     
											Inherited from Constraint 
								 | 
							
| Matches | 
								bool | 
									 
    Protected function overridden by derived class to actually perform the comparison
     
								 | 
							
| ToString | 
								string | 
									 
    Default override of ToString returns the constraint DisplayName
    followed by any arguments within angle brackets.
     
											Inherited from Constraint 
								 | 
							
| Using | 
								ComparisonConstraint | 
								
									 
    Modifies the constraint to use an IComparer and returns self
     
								 | 
							
| Using | 
								ComparisonConstraint | 
								
									 
    Modifies the constraint to use a Comparison<T> and returns self
     
								 | 
							
| Using | 
								ComparisonConstraint | 
								
									 
    Modifies the constraint to use an IComparer<T> and returns self
     
								 | 
							
| ValidateActualValue | 
								void | 
