C# 클래스 NUnit.Framework.Constraints.PathConstraint

PathConstraint serves as the abstract base of constraints that operate on paths and provides several helper methods.
상속: NUnit.Framework.Constraints.Constraint
파일 보기 프로젝트 열기: antonsamarsky/emitmapper-tools

보호된 프로퍼티들

프로퍼티 타입 설명
caseInsensitive bool
expected string

공개 메소드들

메소드 설명
ToString ( ) : string

Returns the string representation of this constraint

보호된 메소드들

메소드 설명
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

메소드 상세

Canonicalize() 보호된 메소드

Canonicalize the provided path
protected Canonicalize ( string path ) : string
path string
리턴 string

IsSamePath() 보호된 메소드

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

IsSamePathOrUnder() 보호된 메소드

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
리턴 bool

PathConstraint() 보호된 메소드

Construct a PathConstraint for a give expected path
protected PathConstraint ( string expected ) : System
expected string The expected path
리턴 System

ToString() 공개 메소드

Returns the string representation of this constraint
public ToString ( ) : string
리턴 string

프로퍼티 상세

caseInsensitive 보호되어 있는 프로퍼티

Flag indicating whether a caseInsensitive comparison should be made
protected bool caseInsensitive
리턴 bool

expected 보호되어 있는 프로퍼티

The expected path used in the constraint
protected string expected
리턴 string