IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Constraints.IConstraint Interface Reference

Interface for all constraints More...

+ Inheritance diagram for NUnit.Framework.Constraints.IConstraint:
+ Collaboration diagram for NUnit.Framework.Constraints.IConstraint:

Public Member Functions

ConstraintResult ApplyTo< TActual > (TActual actual)
 Applies the constraint to an actual value, returning a ConstraintResult. More...
 
ConstraintResult ApplyTo< TActual > (ActualValueDelegate< TActual > del)
 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. More...
 
ConstraintResult ApplyTo< TActual > (ref TActual actual)
 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. More...
 
- Public Member Functions inherited from NUnit.Framework.Constraints.IResolveConstraint
IConstraint Resolve ()
 Return the top-level constraint for this expression More...
 

Properties

string DisplayName [get]
 The display name of this Constraint for use by ToString(). More...
 
string Description [get]
 The Description of what this constraint tests, for use in messages and in the ConstraintResult. More...
 
object[] Arguments [get]
 Arguments provided to this Constraint, for use in formatting the description. More...
 
ConstraintBuilder Builder [get, set]
 The ConstraintBuilder holding this constraint More...
 

Detailed Description

Interface for all constraints

Member Function Documentation

ConstraintResult NUnit.Framework.Constraints.IConstraint.ApplyTo< TActual > ( TActual  actual)

Applies the constraint to an actual value, returning a ConstraintResult.

Parameters
actualThe value to be tested
Returns
A ConstraintResult

Implemented in NUnit.Framework.Constraints.EqualConstraint, NUnit.Framework.Constraints.FileOrDirectoryExistsConstraint, NUnit.Framework.Constraints.Constraint, NUnit.Framework.Constraints.StringConstraint, NUnit.Framework.Constraints.ComparisonConstraint, NUnit.Framework.Constraints.DelayedConstraint, NUnit.Framework.Syntax.ArbitraryConstraintMatching.CustomConstraint, NUnit.Framework.Constraints.ContainsConstraint, NUnit.Framework.Constraints.RangeConstraint, NUnit.Framework.Constraints.CollectionConstraint, NUnit.Framework.Constraints.ThrowsConstraint, NUnit.Framework.Constraints.PredicateConstraint< T >, NUnit.Framework.Constraints.PropertyExistsConstraint, NUnit.Framework.Constraints.AttributeExistsConstraint, NUnit.Framework.Constraints.AndConstraint, NUnit.Framework.Constraints.AttributeConstraint, NUnit.Framework.Constraints.TypeConstraint, NUnit.Framework.Constraints.ExactCountConstraint, NUnit.Framework.Constraints.SameAsConstraint, NUnit.Framework.Constraints.PropertyConstraint, NUnit.Framework.Constraints.BinarySerializableConstraint, NUnit.Framework.Constraints.AllItemsConstraint, NUnit.Framework.Constraints.EmptyDirectoryConstraint, NUnit.Framework.Constraints.NoItemConstraint, NUnit.Framework.Constraints.SomeItemsConstraint, NUnit.Framework.Constraints.XmlSerializableConstraint, NUnit.Framework.Constraints.OrConstraint, NUnit.Framework.Constraints.ThrowsNothingConstraint, NUnit.Framework.Constraints.EmptyConstraint, NUnit.Framework.Constraints.ThrowsExceptionConstraint, NUnit.Framework.Constraints.NotConstraint, NUnit.Framework.Constraints.ExceptionTypeConstraint, NUnit.Framework.Constraints.NaNConstraint, NUnit.Framework.Constraints.FalseConstraint, NUnit.Framework.Constraints.NullConstraint, and NUnit.Framework.Constraints.TrueConstraint.

ConstraintResult NUnit.Framework.Constraints.IConstraint.ApplyTo< TActual > ( ActualValueDelegate< TActual >  del)

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.

Parameters
delAn ActualValueDelegate
Returns
A ConstraintResult

Implemented in NUnit.Framework.Constraints.DelayedConstraint, NUnit.Framework.Constraints.Constraint, NUnit.Framework.Constraints.ThrowsConstraint, and NUnit.Framework.Constraints.ThrowsNothingConstraint.

ConstraintResult NUnit.Framework.Constraints.IConstraint.ApplyTo< TActual > ( ref TActual  actual)

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.

Parameters
actualA reference to the value to be tested
Returns
A ConstraintResult

Implemented in NUnit.Framework.Constraints.DelayedConstraint, and NUnit.Framework.Constraints.Constraint.

Property Documentation

string NUnit.Framework.Constraints.IConstraint.DisplayName
get

The display name of this Constraint for use by ToString().

Referenced by NUnit.Framework.Constraints.ConstraintResult.ConstraintResult().

string NUnit.Framework.Constraints.IConstraint.Description
get

The Description of what this constraint tests, for use in messages and in the ConstraintResult.

Referenced by NUnit.Framework.Constraints.ConstraintResult.ConstraintResult().

object [] NUnit.Framework.Constraints.IConstraint.Arguments
get

Arguments provided to this Constraint, for use in formatting the description.


The documentation for this interface was generated from the following file: