Share via


AssertFailedException Constructor (String)

Initializes a new instance of the AssertFailedException class that uses with a specified error message.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Sub New ( _
    msg As String _
)
public AssertFailedException(
    string msg
)
public:
AssertFailedException(
    String^ msg
)
new : 
        msg:string -> AssertFailedException
public function AssertFailedException(
    msg : String
)

Parameters

  • msg
    Type: String

    The message that describes the error.

.NET Framework Security

See Also

Reference

AssertFailedException Class

AssertFailedException Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Using the Assert Classes