Düzenle

Aracılığıyla paylaş


Assert.False Method

Definition

Overloads

False(Boolean)

Asserts that a condition is false. If the condition is true the method throws an AssertionException.

False(Boolean, String)

Asserts that a condition is false. If the condition is true the method throws an AssertionException.

False(Boolean, String, Object[])

Asserts that a condition is false. If the condition is true the method throws an AssertionException.

False(Boolean)

Asserts that a condition is false. If the condition is true the method throws an AssertionException.

public static void False (bool condition);
static member False : bool -> unit

Parameters

condition
Boolean

The evaluated condition

Applies to

False(Boolean, String)

Asserts that a condition is false. If the condition is true the method throws an AssertionException.

public static void False (bool condition, string message);
static member False : bool * string -> unit

Parameters

condition
Boolean

The evaluated condition

message
String

The message to display if the condition is true

Applies to

False(Boolean, String, Object[])

Asserts that a condition is false. If the condition is true the method throws an AssertionException.

public static void False (bool condition, string message, params object[] args);
static member False : bool * string * obj[] -> unit

Parameters

condition
Boolean

The evaluated condition

message
String

The message to display if the condition is true

args
Object[]

Arguments to be used in formatting the message

Applies to