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

RegexConstraint can test whether a string matches the pattern provided.
상속: NUnit.Framework.Constraints.StringConstraint
파일 보기 프로젝트 열기: pjcollins/Andr.Unit 1 사용 예제들

공개 메소드들

메소드 설명
RegexConstraint ( string pattern ) : System.Text.RegularExpressions

Initializes a new instance of the T:RegexConstraint class.

WriteDescriptionTo ( MessageWriter writer ) : void

Write the constraint description to a MessageWriter

보호된 메소드들

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

Test whether the constraint is satisfied by a given value

메소드 상세

Matches() 보호된 메소드

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

RegexConstraint() 공개 메소드

Initializes a new instance of the T:RegexConstraint class.
public RegexConstraint ( string pattern ) : System.Text.RegularExpressions
pattern string The pattern.
리턴 System.Text.RegularExpressions

WriteDescriptionTo() 공개 메소드

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