Provides a number of different validation methods.
| C# | Visual Basic | Visual C++ |
public static class Validate
Public NotInheritable Class Validate
public ref class Validate abstract sealed
| All Members | Methods | Properties | Fields | ||
| Icon | Member | Description |
|---|---|---|
| AreEqual(Object, Object) |
Validates if the actual value of an object equals an expected value.
| |
| AreEqual(Object, Object, String) |
Validates if the actual value of an object equals an expected value.
| |
| AreEqual(Object, Object, String, Boolean) |
Validates if the actual value of an object equals an expected value.
| |
| AreEqual(Object, Object, String, Validate..::.Options) |
Validates if the actual value of an object equals an expected value.
| |
| AreEqual(String, Regex) |
Validates if the given regular expression matches the given string.
| |
| AreEqual(String, Regex, String) |
Validates if the given regular expression matches the given string.
| |
| AreEqual(String, Regex, String, Boolean) |
Validates if the given regular expression matches the given string.
| |
| AreEqual(String, Regex, String, Validate..::.Options) |
Validates if the given regular expression matches the given string.
| |
| Attribute(RepoItemInfo, String, Object) |
Validates if the attribute of the element for the specified repository item matches a specific value.
| |
| Attribute(RepoItemInfo, String, Object, String) |
Validates if the attribute of the element for the specified repository item matches a specific value.
| |
| Attribute(RepoItemInfo, String, Object, String, Boolean) |
Validates if the attribute of the element for the specified repository item matches a specific value.
| |
| Attribute(RepoItemInfo, String, Object, String, Validate..::.Options) |
Validates if the attribute of the element for the specified repository item matches a specific value.
| |
| Attribute(Element, String, Object) |
Validates if the attribute of the specified element matches a specific value.
| |
| Attribute(Element, String, Object, String) |
Validates if the attribute of the specified element matches a specific value.
| |
| Attribute(Element, String, Object, String, Boolean) |
Validates if the attribute of the specified element matches a specific value.
| |
| Attribute(Element, String, Object, String, Validate..::.Options) |
Validates if the attribute of the specified element matches a specific value.
| |
| Attribute(RepoItemInfo, String, Regex) |
Validates if the attribute of the element for the specified repository item matches a specific regular expression.
| |
| Attribute(RepoItemInfo, String, Regex, String) |
Validates if the attribute of the element for the specified repository item matches a specific regular expression.
| |
| Attribute(RepoItemInfo, String, Regex, String, Boolean) |
Validates if the attribute of the element for the specified repository item matches a specific regular expression.
| |
| Attribute(RepoItemInfo, String, Regex, String, Validate..::.Options) |
Validates if the attribute of the element for the specified repository item matches a specific regular expression.
| |
| Attribute(Element, String, Regex) |
Validates if the attribute of the specified element matches a specific regular expression.
| |
| Attribute(Element, String, Regex, String) |
Validates if the attribute of the specified element matches a specific regular expression.
| |
| Attribute(Element, String, Regex, String, Boolean) |
Validates if the attribute of the specified element matches a specific regular expression.
| |
| Attribute(Element, String, Regex, String, Validate..::.Options) |
Validates if the attribute of the specified element matches a specific regular expression.
| |
| CompareImage(RepoItemInfo, Bitmap, Imaging..::.FindOptions) |
Validates if the screenshot of the specified repository item matches the given image.
| |
| CompareImage(RepoItemInfo, Bitmap, Imaging..::.FindOptions, String) |
Validates if the screenshot of the specified repository item matches the given image.
| |
| CompareImage(RepoItemInfo, Bitmap, Imaging..::.FindOptions, String, Boolean) |
Validates if the screenshot of the specified repository item matches the given image.
| |
| CompareImage(RepoItemInfo, Bitmap, Imaging..::.FindOptions, String, Validate..::.Options) |
Validates if the screenshot of the specified repository item matches the given image.
| |
| CompareImage(Element, Bitmap, Imaging..::.FindOptions) |
Validates if the screenshot of the specified element matches the given image.
| |
| CompareImage(Element, Bitmap, Imaging..::.FindOptions, String) |
Validates if the screenshot of the specified element matches the given image.
| |
| CompareImage(Element, Bitmap, Imaging..::.FindOptions, String, Boolean) |
Validates if the screenshot of the specified element matches the given image.
| |
| CompareImage(Element, Bitmap, Imaging..::.FindOptions, String, Validate..::.Options) |
Validates if the screenshot of the specified element matches the given image.
| |
| ContainsImage(RepoItemInfo, Bitmap, Imaging..::.FindOptions) |
Validates if the screenshot of the specified repository item contains the given image.
| |
| ContainsImage(RepoItemInfo, Bitmap, Imaging..::.FindOptions, String) |
Validates if the screenshot of the specified repository item contains the given image.
| |
| ContainsImage(RepoItemInfo, Bitmap, Imaging..::.FindOptions, String, Boolean) |
Validates if the screenshot of the specified repository item contains the given image.
| |
| ContainsImage(RepoItemInfo, Bitmap, Imaging..::.FindOptions, String, Validate..::.Options) |
Validates if the screenshot of the specified repository item contains the given image.
| |
| ContainsImage(Element, Bitmap, Imaging..::.FindOptions) |
Validates if the screenshot of the specified element contains the given image.
| |
| ContainsImage(Element, Bitmap, Imaging..::.FindOptions, String) |
Validates if the screenshot of the specified element contains the given image.
| |
| ContainsImage(Element, Bitmap, Imaging..::.FindOptions, String, Boolean) |
Validates if the screenshot of the specified element contains the given image.
| |
| ContainsImage(Element, Bitmap, Imaging..::.FindOptions, String, Validate..::.Options) |
Validates if the screenshot of the specified element contains the given image.
| |
| DefaultMessage |
Use the value of this property to specify that the default
validation message should be used.
| |
| EnableReport |
Gets or sets a value indicating whether validations should produce report
messages or not.
| |
| Exists(String) |
Validates if the element for the specified path exists using the DefaultSearchTimeout
to keep looking for an element matching the path.
| |
| Exists(String, Duration) |
Validates if the element for the specified path exists.
| |
| Exists(String, Duration, String) |
Validates if the element for the specified path exists.
| |
| Exists(String, Duration, String, Boolean) |
Validates if the element for the specified path exists.
| |
| Exists(String, Duration, String, Validate..::.Options) |
Validates if the element for the specified path exists.
| |
| Exists(RxPath) |
Validates if the element for the specified path exists using the DefaultSearchTimeout
to keep looking for an element matching the path.
| |
| Exists(RxPath, Duration) |
Validates if the element for the specified path exists.
| |
| Exists(RxPath, Duration, String) |
Validates if the element for the specified path exists.
| |
| Exists(RxPath, Duration, String, Boolean) |
Validates if the element for the specified path exists.
| |
| Exists(RxPath, Duration, String, Validate..::.Options) |
Validates if the element for the specified path exists.
| |
| Exists(RepoItemInfo) |
Validates if the element for the specified repository item exists.
| |
| Exists(RepoItemInfo, String) |
Validates if the element for the specified repository item exists.
| |
| Exists(RepoItemInfo, String, Boolean) |
Validates if the element for the specified repository item exists.
| |
| Exists(RepoItemInfo, String, Validate..::.Options) |
Validates if the element for the specified repository item exists.
| |
| Exists(Element) |
Validates if the specified element exists.
| |
| Exists(Element, String) |
Validates if the specified element exists.
| |
| Exists(Element, String, Boolean) |
Validates if the specified element exists.
| |
| Exists(Element, String, Validate..::.Options) |
Validates if the specified element exists.
| |
| IsFalse(Boolean) |
Validates if the given condition is false.
| |
| IsFalse(Boolean, String) |
Validates if the given condition is false.
| |
| IsFalse(Boolean, String, Boolean) |
Validates if the given condition is false.
| |
| IsFalse(Boolean, String, Validate..::.Options) |
Validates if the given condition is false.
| |
| IsTrue(Boolean) |
Validates if the given condition is true.
| |
| IsTrue(Boolean, String) |
Validates if the given condition is true.
| |
| IsTrue(Boolean, String, Boolean) |
Validates if the given condition is true.
| |
| IsTrue(Boolean, String, Validate..::.Options) |
Validates if the given condition is true.
| |
| NotExists(String) |
Validates if the element for the specified path does not exist using the
DefaultSearchTimeout to keep looking for an element matching the path.
| |
| NotExists(String, Duration) |
Validates if the element for the specified path does not exist.
| |
| NotExists(String, Duration, String) |
Validates if the element for the specified path does not exist.
| |
| NotExists(String, Duration, String, Boolean) |
Validates if the element for the specified path does not exist.
| |
| NotExists(String, Duration, String, Validate..::.Options) |
Validates if the element for the specified path does not exist.
| |
| NotExists(RxPath) |
Validates if the element for the specified path does not exist using the
DefaultSearchTimeout to keep looking for an element matching the path.
| |
| NotExists(RxPath, Duration) |
Validates if the element for the specified path does not exist.
| |
| NotExists(RxPath, Duration, String) |
Validates if the element for the specified path does not exist.
| |
| NotExists(RxPath, Duration, String, Boolean) |
Validates if the element for the specified path does not exist.
| |
| NotExists(RxPath, Duration, String, Validate..::.Options) |
Validates if the element for the specified path does not exist.
| |
| NotExists(RepoItemInfo) |
Validates if the element for the specified repository item does not exist.
| |
| NotExists(RepoItemInfo, String) |
Validates if the element for the specified repository item does not exist.
| |
| NotExists(RepoItemInfo, String, Boolean) |
Validates if the element for the specified repository item does not exist.
| |
| NotExists(RepoItemInfo, String, Validate..::.Options) |
Validates if the element for the specified repository item does not exist.
| |
| NotExists(Element) |
Validates if the specified element does not exist.
| |
| NotExists(Element, String) |
Validates if the specified element does not exist.
| |
| NotExists(Element, String, Boolean) |
Validates if the specified element does not exist.
| |
| NotExists(Element, String, Validate..::.Options) |
Validates if the specified element does not exist.
|
You can use the following variables in messages you pass to the Validate
methods that are replaced by the following values depending on the result of
the validation:
For example, the following message will be transformed according to the outcome of the
validation:
CopyC#
| Variable | Value if validation succeeds | Value if the validation fails |
|---|---|---|
| "@ValidateRESULT@" | "succeeded" | "failed" |
| "@ValidateNOT@" | "" | "not " |
| "@ValidateTRUENOT@" | "not " | "" |
bool condition = true; Validate.IsTrue(condition, "The validation @ValidateRESULT@.");
| Object | |
| Validate | |
