Home
Library
Learn
Downloads
Support
Community
Forums
MSDN Library
Development Tools and Languages
Visual Studio 2008
Visual Studio Team System
Test Edition
Microsoft.VisualStudio.TestTools.UnitTesting Namespace
Assert Class
Assert Methods
Fail Method
Fail Method
Fail Method (String)
Fail Method (String, Object[])
Related Links
AreEqual Method
AreNotEqual Method
AreNotSame Method
AreSame Method
Equals Method
Inconclusive Method
IsFalse Method
IsInstanceOfType Method
IsNotInstanceOfType Method
IsNotNull Method
IsNull Method
IsTrue Method
ReplaceNullChars Method
Assert
.
.
::
.
Fail Method
This page is specific to:
.NET Framework Version:
2.0
3.5
4.0
Team Test API
Assert
.
.
::
.
Fail Method
Fails an assertion without checking any conditions.
Overload List
Name
Description
Fail
()
()
()
Fails the assertion without checking any conditions.
Fail(String)
Fails the assertion without checking any conditions. Displays a message.
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
Assert Members
Microsoft.VisualStudio.TestTools.UnitTesting Namespace
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Yes
No
Do you like the tabbed code blocks?
Yes
No
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
x
Classic
Lightweight Beta
ScriptFree
Switch View