Assert.Pass Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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