Table of Contents

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 IResolveConstraint

The expression to be resolved and reused

Methods

Resolve()

Return the top-level constraint for this expression

public IConstraint Resolve()

Returns

IConstraint

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.

Operators

implicit operator ReusableConstraint(Constraint)

Converts a constraint to a ReusableConstraint

public static implicit operator ReusableConstraint(Constraint c)

Parameters

c Constraint

The constraint to be converted

Returns

ReusableConstraint

A ReusableConstraint