IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Interface for all constraints More...
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... | |
![]() | |
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... | |
Interface for all constraints
ConstraintResult NUnit.Framework.Constraints.IConstraint.ApplyTo< TActual > | ( | TActual | actual | ) |
Applies the constraint to an actual value, returning a ConstraintResult.
actual | The value to be tested |
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.
del | An ActualValueDelegate |
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.
actual | A reference to the value to be tested |
Implemented in NUnit.Framework.Constraints.DelayedConstraint, and NUnit.Framework.Constraints.Constraint.
|
get |
The display name of this Constraint for use by ToString().
Referenced by NUnit.Framework.Constraints.ConstraintResult.ConstraintResult().
|
get |
The Description of what this constraint tests, for use in messages and in the ConstraintResult.
Referenced by NUnit.Framework.Constraints.ConstraintResult.ConstraintResult().
|
get |
Arguments provided to this Constraint, for use in formatting the description.
|
getset |
The ConstraintBuilder holding this constraint
Referenced by NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.Pop(), and NUnit.Framework.Constraints.ConstraintBuilder.ConstraintStack.Push().