Assert.Fail Assert.Fail Assert.Fail Method

Definition

Overloads

Fail() Fail() Fail()

Throws an AssertFailedException.

Fail(String) Fail(String) Fail(String)

Throws an AssertFailedException.

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

Throws an AssertFailedException.

Fail() Fail() Fail()

Throws an AssertFailedException.

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

Exceptions

Fail(String) Fail(String) Fail(String)

Throws an AssertFailedException.

public static void Fail (string message);
static member Fail : string -> unit
Public Shared Sub Fail (message As String)

Parameters

message
String String String

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

Exceptions

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

Throws an AssertFailedException.

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

Parameters

message
String String String

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

parameters
Object[]

An array of parameters to use when formatting message.

Exceptions

Applies to