C# 클래스 NUnit.Framework.Does

Helper class with properties and methods that supply a number of constraints used in Asserts.
파일 보기 프로젝트 열기: msgpack/msgpack-cli 1 사용 예제들

공개 메소드들

메소드 설명
Contain ( object expected ) : CollectionContainsConstraint

Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection.

Contain ( string expected ) : NUnit.Framework.Constraints.ContainsConstraint

Returns a new ContainsConstraint. This constraint will, in turn, make use of the appropriate second-level constraint, depending on the type of the actual argument. This overload is only used if the item sought is a string, since any other type implies that we are looking for a collection member.

EndWith ( string expected ) : NUnit.Framework.Constraints.EndsWithConstraint

Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument.

Match ( string pattern ) : RegexConstraint

Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument.

StartWith ( string expected ) : NUnit.Framework.Constraints.StartsWithConstraint

Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument.

메소드 상세

Contain() 공개 정적인 메소드

Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection.
public static Contain ( object expected ) : CollectionContainsConstraint
expected object
리턴 NUnit.Framework.Constraints.CollectionContainsConstraint

Contain() 공개 정적인 메소드

Returns a new ContainsConstraint. This constraint will, in turn, make use of the appropriate second-level constraint, depending on the type of the actual argument. This overload is only used if the item sought is a string, since any other type implies that we are looking for a collection member.
public static Contain ( string expected ) : NUnit.Framework.Constraints.ContainsConstraint
expected string
리턴 NUnit.Framework.Constraints.ContainsConstraint

EndWith() 공개 정적인 메소드

Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument.
public static EndWith ( string expected ) : NUnit.Framework.Constraints.EndsWithConstraint
expected string
리턴 NUnit.Framework.Constraints.EndsWithConstraint

Match() 공개 정적인 메소드

Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument.
public static Match ( string pattern ) : RegexConstraint
pattern string
리턴 NUnit.Framework.Constraints.RegexConstraint

StartWith() 공개 정적인 메소드

Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument.
public static StartWith ( string expected ) : NUnit.Framework.Constraints.StartsWithConstraint
expected string
리턴 NUnit.Framework.Constraints.StartsWithConstraint