Assert.False 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
False(Boolean) |
Asserts that a condition is false. If the condition is true the method throws an AssertionException. |
False(Boolean, String) |
Asserts that a condition is false. If the condition is true the method throws an AssertionException. |
False(Boolean, String, Object[]) |
Asserts that a condition is false. If the condition is true the method throws an AssertionException. |
False(Boolean)
Asserts that a condition is false. If the condition is true the method throws an AssertionException.
public static void False (bool condition);
static member False : bool -> unit
Parameters
- condition
- Boolean
The evaluated condition
Applies to
False(Boolean, String)
Asserts that a condition is false. If the condition is true the method throws an AssertionException.
public static void False (bool condition, string message);
static member False : bool * string -> unit
Parameters
- condition
- Boolean
The evaluated condition
- message
- String
The message to display if the condition is true
Applies to
False(Boolean, String, Object[])
Asserts that a condition is false. If the condition is true the method throws an AssertionException.
public static void False (bool condition, string message, params object[] args);
static member False : bool * string * obj[] -> unit
Parameters
- condition
- Boolean
The evaluated condition
- message
- String
The message to display if the condition is true
- args
- Object[]
Arguments to be used in formatting the message