Assert.IsFalse Assert.IsFalse Assert.IsFalse Method

Definition

Overloads

IsFalse(Boolean) IsFalse(Boolean) IsFalse(Boolean)

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

IsFalse(Boolean, String) IsFalse(Boolean, String) IsFalse(Boolean, String)

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

IsFalse(Boolean, String, Object[]) IsFalse(Boolean, String, Object[]) IsFalse(Boolean, String, Object[])

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

IsFalse(Boolean) IsFalse(Boolean) 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 Boolean Boolean

The condition the test expects to be false.

Exceptions

IsFalse(Boolean, String) IsFalse(Boolean, String) 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 Boolean Boolean

The condition the test expects to be false.

message
String String String

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

Exceptions

IsFalse(Boolean, String, Object[]) IsFalse(Boolean, String, Object[]) 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 Boolean Boolean

The condition the test expects to be false.

message
String String 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

Applies to