Upravit

Sdílet prostřednictvím


Assert.Ignore Method

Definition

Overloads

Ignore()

Throws an IgnoreException. This causes the test to be reported as ignored.

Ignore(String)

Throws an IgnoreException with the message that is passed in. This causes the test to be reported as ignored.

Ignore(String, Object[])

Throws an IgnoreException with the message and arguments that are passed in. This causes the test to be reported as ignored.

Ignore()

Throws an IgnoreException. This causes the test to be reported as ignored.

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

Applies to

Ignore(String)

Throws an IgnoreException with the message that is passed in. This causes the test to be reported as ignored.

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

Parameters

message
String

The message to initialize the AssertionException with.

Applies to

Ignore(String, Object[])

Throws an IgnoreException with the message and arguments that are passed in. This causes the test to be reported as ignored.

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

Parameters

message
String

The message to initialize the AssertionException with.

args
Object[]

Arguments to be used in formatting the message

Applies to