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.

Show:
© 2014 Microsoft