Assert.Fail Method

Definition

Overloads

Fail()
Fail(String)
Fail(String, Object[])

Throw an assertion exception with a message and optional arguments

Fail()

public static void Fail ();
static member Fail : unit -> unit

Applies to

Fail(String)

public static void Fail (string message);
static member Fail : string -> unit

Parameters

message
String

Applies to

Fail(String, Object[])

Throw an assertion exception with a message and optional arguments

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

Parameters

message
String

The message, possibly with format placeholders

args
Object[]

Arguments used in formatting the string

Applies to