Click or drag to resize
Ranorex

ValidateAreEqual Method (String, Regex, String)

Validates if the given regular expression matches the given string.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static void AreEqual(
	string actual,
	Regex regex,
	string message
)

Parameters

actual
Type: SystemString
The string to match.
regex
Type: System.Text.RegularExpressionsRegex
The regular expression to match.
message
Type: SystemString
The message to log. "{0}" is replaced by the string representation of actual, "{1}" by the string representation of regex.
Exceptions
ExceptionCondition
ValidationExceptionIf the validation fails.
See Also