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