 | ValidateAreEqual Method (Object, Object, String, ValidateOptions) |
Validates if the actual value of an object equals an expected value.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static bool AreEqual(
Object actual,
Object expected,
string message,
ValidateOptions options
)
Public Shared Function AreEqual (
actual As Object,
expected As Object,
message As String,
options As ValidateOptions
) As Boolean
Parameters
- actual
- Type: SystemObject
The actual value of the object. - expected
- Type: SystemObject
The expected value of the object. - message
- Type: SystemString
The message to log. "{0}" is replaced by the string
representation of actual, "{1}" by the string representation
of expected. - options
- Type: RanorexValidateOptions
Additional ValidateOptions for this validation action.
Return Value
Type:
BooleanTrue if
actual and
expected are
equal; otherwise
false.
Exceptions
See Also