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

SubDirectoryConstraint is used to test that one directory is a subdirectory of another.
상속: NUnit.Framework.Constraints.Constraint
파일 보기 프로젝트 열기: antonsamarsky/emitmapper-tools

공개 메소드들

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

Test whether the constraint is satisfied by a given value

SubDirectoryConstraint ( DirectoryInfo dirInfo ) : System

Initializes a new instance of the T:SubDirectoryConstraint class.

WriteDescriptionTo ( MessageWriter writer ) : void

Write the constraint description to a MessageWriter

비공개 메소드들

메소드 설명
BuildDirectoryList ( DirectoryInfo StartingDirectory ) : List

Builds a list of DirectoryInfo objects, recursing where necessary

DirectoriesEqual ( DirectoryInfo expected, DirectoryInfo actual ) : bool

Method to compare two DirectoryInfo objects

IsDirectoryOnPath ( DirectoryInfo ParentDirectory, DirectoryInfo SearchDirectory ) : bool

private method to determine whether a directory is within the path

메소드 상세

Matches() 공개 메소드

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

SubDirectoryConstraint() 공개 메소드

Initializes a new instance of the T:SubDirectoryConstraint class.
public SubDirectoryConstraint ( DirectoryInfo dirInfo ) : System
dirInfo System.IO.DirectoryInfo The dir info.
리턴 System

WriteDescriptionTo() 공개 메소드

Write the constraint description to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter The writer on which the description is displayed
리턴 void