# VerifyAreNotEqual

> Verifies if two expressions are not equal.

Verifies if two expressions are not equal.

## Definition

**Namespace:** UiPath.Testing.API

**Assembly:** UiPath.Testing.Activities.Api (in UiPath.Testing.Activities.Api.dll)

## `VerifyAreNotEqual(object, object, string)`

```
bool VerifyAreNotEqual(
       object firstExpression,
       object secondExpression,
       string outputMessageFormat =  null
)
```

`firstExpression` [Object](https://learn.microsoft.com/dotnet/api/system.object) : The first expression in the verification process.

`secondExpression` [Object](https://learn.microsoft.com/dotnet/api/system.object) : The second expression in the verification process.

`outputMessageFormat` [String](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=net-8.0) : The format of the output message. The supported arguments are:

 * `{LeftExpression}`
 * `{LeftExpressionText}`
 * `{RightExpression}`
 * `{RightExpressionText}`
 * `{Result}`
 * `{Operator}`

For instance, you can use the following output message format:

```
 {LeftExpressionText}
    (with value {LeftExpression}) {Operator} {RightExpressionText} (with value {RightExpression})
     has result {Result}.
```

This message format indicates a comparison between two values or variables (`LeftExpression` and `RightExpression`), using a certain operator. The `{Result}` represents the outcome of this comparison.

## Return value

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

It is `True` if the expressions aren't equal, and `False` if the verifications are equal.
