Table of Contents

Class SamePathConstraint

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

Summary description for SamePathConstraint.

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

Constructors

SamePathConstraint(string)

Initializes a new instance of the SamePathConstraint class.

public SamePathConstraint(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