Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Assert.Fail Method

Fails the assertion without checking any conditions.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

public static void Fail()

ExceptionCondition
AssertFailedException

Always thrown.

Community Additions

ADD
Show:
© 2015 Microsoft