Partager via


UnitTestAssertException Constructor (String)

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

See Also

Reference

UnitTestAssertException Class

UnitTestAssertException Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace