Метод | Описание | |
---|---|---|
Contain ( object expected ) : |
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 ) : |
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.
|
public static Contain ( object expected ) : |
||
expected | object | |
Результат |
public static Contain ( string expected ) : NUnit.Framework.Constraints.ContainsConstraint | ||
expected | string | |
Результат | NUnit.Framework.Constraints.ContainsConstraint |
public static EndWith ( string expected ) : NUnit.Framework.Constraints.EndsWithConstraint | ||
expected | string | |
Результат | NUnit.Framework.Constraints.EndsWithConstraint |
public static Match ( string pattern ) : |
||
pattern | string | |
Результат |
public static StartWith ( string expected ) : NUnit.Framework.Constraints.StartsWithConstraint | ||
expected | string | |
Результат | NUnit.Framework.Constraints.StartsWithConstraint |