Partager via


Assert.Fail Method

Include Protected Members
Include Inherited Members

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.

Overload List

  Name Description
Public methodStatic member Fail() Fails the assertion without checking any conditions.
Public methodStatic member Fail(String) Fails the assertion without checking any conditions. Displays a message.
Public methodStatic member Fail(String, array<Object[]) Fails the assertion without checking any conditions. Displays a message, and applies the specified formatting to it.

Top

See Also

Reference

Assert Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace