C# Class NUnit.Framework.Constraints.PathConstraint

PathConstraint serves as the abstract base of constraints that operate on paths and provides several helper methods.
Inheritance: NUnit.Framework.Constraints.Constraint
Afficher le fichier Open project: antonsamarsky/emitmapper-tools

Protected Properties

Свойство Type Description
caseInsensitive bool
expected string

Méthodes publiques

Méthode Description
ToString ( ) : string

Returns the string representation of this constraint

Méthodes protégées

Méthode Description
Canonicalize ( string path ) : string

Canonicalize the provided path

IsSamePath ( string path1, string path2 ) : bool

Test whether two paths are the same

IsSamePathOrUnder ( string path1, string path2 ) : bool

Test whether one path is the same as or under another path

PathConstraint ( string expected ) : System

Construct a PathConstraint for a give expected path

Method Details

Canonicalize() protected méthode

Canonicalize the provided path
protected Canonicalize ( string path ) : string
path string
Résultat string

IsSamePath() protected méthode

Test whether two paths are the same
protected IsSamePath ( string path1, string path2 ) : bool
path1 string The first path
path2 string The second path
Résultat bool

IsSamePathOrUnder() protected méthode

Test whether one path is the same as or under another path
protected IsSamePathOrUnder ( string path1, string path2 ) : bool
path1 string The first path - supposed to be the parent path
path2 string The second path - supposed to be the child path
Résultat bool

PathConstraint() protected méthode

Construct a PathConstraint for a give expected path
protected PathConstraint ( string expected ) : System
expected string The expected path
Résultat System

ToString() public méthode

Returns the string representation of this constraint
public ToString ( ) : string
Résultat string

Property Details

caseInsensitive protected_oe property

Flag indicating whether a caseInsensitive comparison should be made
protected bool caseInsensitive
Résultat bool

expected protected_oe property

The expected path used in the constraint
protected string expected
Résultat string