Assert.Fail 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
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