This documentation is archived and is not being maintained.

Assert.Fail Method

Fails an assertion without checking any conditions.

Name Description
Assert.Fail () Fails the assertion without checking any conditions.
Assert.Fail (String) Fails the assertion without checking any conditions. Displays a message.
Assert.Fail (String, Object[]) Fails the assertion without checking any conditions. Displays a message, and applies the specified formatting to it.
Show: