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.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member Fail() Fails the assertion without checking any conditions.
Public method Static member Fail(String) Fails the assertion without checking any conditions. Displays a message.
Public method Static member Fail(String, Object[]) Fails the assertion without checking any conditions. Displays a message, and applies the specified formatting to it.
Top
Show:
© 2015 Microsoft