This documentation is archived and is not being maintained.

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)

public class AssertFailedException : 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.
Show: