Assert.IsFalse Method

Definition

Overloads

IsFalse(Boolean)

Tests whether the specified condition is false and throws an exception if the condition is true.

IsFalse(Boolean, String)

Tests whether the specified condition is false and throws an exception if the condition is true.

IsFalse(Boolean, String, Object[])

Tests whether the specified condition is false and throws an exception if the condition is true.

IsFalse(Boolean)

Tests whether the specified condition is false and throws an exception if the condition is true.

public static void IsFalse (bool condition);
static member IsFalse : bool -> unit
Public Shared Sub IsFalse (condition As Boolean)

Parameters

condition
Boolean

The condition the test expects to be false.

Exceptions

Thrown if condition is true.

IsFalse(Boolean, String)

Tests whether the specified condition is false and throws an exception if the condition is true.

public static void IsFalse (bool condition, string message);
static member IsFalse : bool * string -> unit
Public Shared Sub IsFalse (condition As Boolean, message As String)

Parameters

condition
Boolean

The condition the test expects to be false.

message
String

The message to include in the exception when condition is true. The message is shown in test results.

Exceptions

Thrown if condition is true.

IsFalse(Boolean, String, Object[])

Tests whether the specified condition is false and throws an exception if the condition is true.

public static void IsFalse (bool condition, string message, params object[] parameters);
static member IsFalse : bool * string * obj[] -> unit
Public Shared Sub IsFalse (condition As Boolean, message As String, ParamArray parameters As Object())

Parameters

condition
Boolean

The condition the test expects to be false.

message
String

The message to include in the exception when condition is true. The message is shown in test results.

parameters
Object[]

An array of parameters to use when formatting message.

Exceptions

Thrown if condition is true.

Applies to