Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AssertFailedException Class

AssertFailedException Class

Used to indicate failure for a test.

Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in microsoft.visualstudio.qualitytools.unittestframework.dll)

[SerializableAttribute] 
public class AssertFailedException : UnitTestAssertException
/** @attribute SerializableAttribute() */ 
public class AssertFailedException extends UnitTestAssertException
SerializableAttribute 
public class AssertFailedException extends UnitTestAssertException

This is thrown whenever an assertion fails.

System.Object
   System.Exception
     Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestAssertException
      Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2015 Microsoft