Initializes a new instance of the UnitTestAssertException class with a specified error.
Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Protected Sub New ( _
    msg As String _
)
protected UnitTestAssertException(
    string msg
)
protected:
UnitTestAssertException(
    String^ msg
)
new : 
        msg:string -> UnitTestAssertException
protected function UnitTestAssertException(
    msg : String
)
Parameters
- msg 
 Type: String- The error message that explains the reason for the exception. 
.NET Framework Security
- 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.