Open sandboxFocus

Method AssertNot

AssertNot(bool, string?)

Checks that a given condition is false and throws an AssertionFailedException in case it is not.

Declaration
public static void AssertNot(bool condition, string? expression = null)
Parameters
Type Name Description
bool condition

The condition that must be true.

string expression