AssertFailedException Class
Used to indicate failure for a test.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
System::Exception
Microsoft.VisualStudio.TestTools.UnitTesting::UnitTestAssertException
Microsoft.VisualStudio.TestTools.UnitTesting::AssertFailedException
| Name | Description | |
|---|---|---|
![]() | AssertFailedException() | Initializes a new instance of the AssertFailedException class. |
![]() | AssertFailedException(SerializationInfo^, StreamingContext) | Initializes a new instance of the AssertFailedException class with serialized data. |
![]() | AssertFailedException(String^) | Initializes a new instance of the AssertFailedException class that uses with a specified error message. |
![]() | AssertFailedException(String^, Exception^) | Initializes a new instance of the AssertFailedException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
| Name | Description | |
|---|---|---|
![]() | Data | (Inherited from Exception.) |
![]() | HelpLink | (Inherited from Exception.) |
![]() | HResult | (Inherited from Exception.) |
![]() | InnerException | (Inherited from Exception.) |
![]() | Message | Gets a message that describes the current exception.(Inherited from UnitTestAssertException.) |
![]() | Source | (Inherited from Exception.) |
![]() | StackTrace | (Inherited from Exception.) |
![]() | TargetSite | (Inherited from Exception.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetBaseException() | (Inherited from Exception.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetObjectData(SerializationInfo^, StreamingContext) | Sets the SerializationInfo with information about the exception.(Inherited from UnitTestAssertException.) |
![]() | GetType() | (Inherited from Exception.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Exception.) |
| Name | Description | |
|---|---|---|
![]() | SerializeObjectState | (Inherited from Exception.) |
This is thrown whenever an assertion fails.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



