Table of Contents

Class SamePathOrUnderConstraint

Namespace
NUnit.Framework.Constraints
Assembly
nunit.framework.dll

SamePathOrUnderConstraint tests that one path is under another

public class SamePathOrUnderConstraint : PathConstraint, IConstraint, IResolveConstraint
Inheritance
SamePathOrUnderConstraint
Implements
Inherited Members

Constructors

SamePathOrUnderConstraint(string)

Initializes a new instance of the SamePathOrUnderConstraint class.

public SamePathOrUnderConstraint(string expected)

Parameters

expected string

The expected path

Properties

Description

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

public override string Description { get; }

Property Value

string

Methods

Matches(string)

Test whether the constraint is satisfied by a given value

protected override bool Matches(string actual)

Parameters

actual string

The value to be tested

Returns

bool

True for success, false for failure