Search Results for

    Show / Hide Table of Contents

    Class PrefixConstraint

    Abstract base class used for prefixes

    Inheritance
    object
    Constraint
    PrefixConstraint
    AllItemsConstraint
    AttributeConstraint
    DelayedConstraint
    IndexerConstraint
    NoItemConstraint
    NotConstraint
    PropertyConstraint
    SomeItemsConstraint
    ThrowsConstraint
    Implements
    IConstraint
    IResolveConstraint
    Inherited Members
    Constraint.ApplyTo<TActual>(TActual)
    Constraint.ApplyTo<TActual>(ActualValueDelegate<TActual>)
    Constraint.ApplyTo<TActual>(ref TActual)
    Constraint.ApplyToAsync<TActual>(Func<Task<TActual>>)
    Constraint.GetTestObject<TActual>(ActualValueDelegate<TActual>)
    Constraint.ToString()
    Constraint.GetStringRepresentation(IEnumerable)
    Constraint.GetStringRepresentation()
    Constraint.After(int)
    Constraint.After(int, int)
    Constraint.DisplayName
    Constraint.Arguments
    Constraint.Builder
    Constraint.And
    Constraint.With
    Constraint.Or
    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 abstract class PrefixConstraint : Constraint, IConstraint, IResolveConstraint

    Constructors

    View Source

    PrefixConstraint(IResolveConstraint, string)

    Construct given a base constraint

    Declaration
    protected PrefixConstraint(IResolveConstraint baseConstraint, string descriptionPrefix)
    Parameters
    Type Name Description
    IResolveConstraint baseConstraint
    string descriptionPrefix

    Prefix used in forming the constraint description

    Properties

    View Source

    BaseConstraint

    The base constraint

    Declaration
    protected IConstraint BaseConstraint { get; }
    Property Value
    Type Description
    IConstraint
    View Source

    Description

    The Description of what this constraint tests, for use in messages and in the ConstraintResult.

    Declaration
    public override string Description { get; }
    Property Value
    Type Description
    string
    Overrides
    Constraint.Description
    View Source

    DescriptionPrefix

    Prefix used in forming the constraint description

    Declaration
    protected string DescriptionPrefix { get; }
    Property Value
    Type Description
    string

    Implements

    IConstraint
    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