Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Fail Method

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.

Community Additions

ADD
Show:
© 2015 Microsoft