Search Results for

    Show / Hide Table of Contents

    Class ReusableConstraint

    ReusableConstraint wraps a constraint expression after resolving it so that it can be reused consistently.

    Inheritance
    object
    ReusableConstraint
    Implements
    IResolveConstraint
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Framework.Constraints
    Assembly: nunit.framework.dll
    Syntax
    public class ReusableConstraint : IResolveConstraint

    Constructors

    View Source

    ReusableConstraint(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 Source

    Resolve()

    Return the top-level constraint for this expression

    Declaration
    public IConstraint Resolve()
    Returns
    Type Description
    IConstraint
    View Source

    ToString()

    Returns a string that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents this instance.

    Overrides
    object.ToString()

    Operators

    View Source

    implicit 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

    Implements

    IResolveConstraint
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0