Class ReusableConstraint
- Namespace
- NUnit.Framework.Constraints
- Assembly
- nunit.framework.dll
ReusableConstraint wraps a constraint expression after resolving it so that it can be reused consistently.
public class ReusableConstraint : IResolveConstraint
- Inheritance
-
ReusableConstraint
- Implements
- Inherited Members
Constructors
ReusableConstraint(IResolveConstraint)
Construct a ReusableConstraint from a constraint expression
public ReusableConstraint(IResolveConstraint c)
Parameters
c
IResolveConstraintThe expression to be resolved and reused
Methods
Resolve()
Return the top-level constraint for this expression
public IConstraint Resolve()
Returns
ToString()
Returns a string that represents this instance.
public override string ToString()
Returns
Operators
implicit operator ReusableConstraint(Constraint)
Converts a constraint to a ReusableConstraint
public static implicit operator ReusableConstraint(Constraint c)
Parameters
c
ConstraintThe constraint to be converted
Returns
- ReusableConstraint
A ReusableConstraint