Search Results for

    Show / Hide Table of Contents

    Class SamePathConstraint

    Summary description for SamePathConstraint.

    Inheritance
    object
    Constraint
    StringConstraint
    PathConstraint
    SamePathConstraint
    Implements
    IConstraint
    IResolveConstraint
    Inherited Members
    PathConstraint.GetStringRepresentation()
    PathConstraint.Canonicalize(string)
    PathConstraint.DetermineComparisonType()
    PathConstraint.IsSubPath(string, string)
    PathConstraint.RespectCase
    StringConstraint.expected
    StringConstraint.caseInsensitive
    StringConstraint.descriptionText
    StringConstraint.ApplyTo<TActual>(TActual)
    StringConstraint.IgnoreCase
    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.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 class SamePathConstraint : PathConstraint, IConstraint, IResolveConstraint

    Constructors

    View Source

    SamePathConstraint(string)

    Initializes a new instance of the SamePathConstraint class.

    Declaration
    public SamePathConstraint(string expected)
    Parameters
    Type Name Description
    string expected

    The expected path

    Properties

    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
    StringConstraint.Description

    Methods

    View Source

    Matches(string?)

    Test whether the constraint is satisfied by a given value

    Declaration
    protected override bool Matches(string? actual)
    Parameters
    Type Name Description
    string actual

    The value to be tested

    Returns
    Type Description
    bool

    True for success, false for failure

    Overrides
    StringConstraint.Matches(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