Assert.Fail Method (String, Object)
Visual Studio 2010
Fails the assertion without checking any conditions. Displays a message, and applies the specified formatting to it.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.