Assert.Pass Method

Definition

Overloads

Pass()

Throws a SuccessException with the message and arguments that are passed in. This allows a test to be cut short, with a result of success returned to NUnit.

Pass(String)

Throws a SuccessException with the message and arguments that are passed in. This allows a test to be cut short, with a result of success returned to NUnit.

Pass(String, Object[])

Throws a SuccessException with the message and arguments that are passed in. This allows a test to be cut short, with a result of success returned to NUnit.

Pass()

Throws a SuccessException with the message and arguments that are passed in. This allows a test to be cut short, with a result of success returned to NUnit.

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

Applies to

Pass(String)

Throws a SuccessException with the message and arguments that are passed in. This allows a test to be cut short, with a result of success returned to NUnit.

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

Parameters

message
String

The message to initialize the AssertionException with.

Applies to

Pass(String, Object[])

Throws a SuccessException with the message and arguments that are passed in. This allows a test to be cut short, with a result of success returned to NUnit.

public static void Pass (string message, params object[] args);
static member Pass : 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