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

PathConstraint serves as the abstract base of constraints that operate on paths and provides several helper methods.
상속: Constraint
파일 보기 프로젝트 열기: Unity-Technologies/nunitv2

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
Matches ( object actual ) : bool

Test whether the constraint is satisfied by a given value

보호된 메소드들

메소드 설명
Canonicalize ( string path ) : string

Transform the provided path to its canonical form so that it may be more easily be compared with other paths.

GetStringRepresentation ( ) : string

Returns the string representation of this constraint

IsMatch ( string expectedPath, string actualPath ) : bool

Returns true if the expected path and actual path match

IsSubPath ( string path1, string path2, bool ignoreCase ) : bool

Test whether one path in canonical form is under another.

PathConstraint ( string expectedPath ) : System

Construct a PathConstraint for a give expected path

메소드 상세

Canonicalize() 보호된 정적인 메소드

Transform the provided path to its canonical form so that it may be more easily be compared with other paths.
protected static Canonicalize ( string path ) : string
path string The original path
리턴 string

GetStringRepresentation() 보호된 메소드

Returns the string representation of this constraint
protected GetStringRepresentation ( ) : string
리턴 string

IsMatch() 보호된 추상적인 메소드

Returns true if the expected path and actual path match
protected abstract IsMatch ( string expectedPath, string actualPath ) : bool
expectedPath string
actualPath string
리턴 bool

IsSubPath() 보호된 정적인 메소드

Test whether one path in canonical form is under another.
protected static IsSubPath ( string path1, string path2, bool ignoreCase ) : bool
path1 string The first path - supposed to be the parent path
path2 string The second path - supposed to be the child path
ignoreCase bool Indicates whether case should be ignored
리턴 bool

Matches() 공개 메소드

Test whether the constraint is satisfied by a given value
public Matches ( object actual ) : bool
actual object The value to be tested
리턴 bool

PathConstraint() 보호된 메소드

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

프로퍼티 상세

caseInsensitive 보호되어 있는 프로퍼티

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

expectedPath 보호되어 있는 프로퍼티

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