Share via


ExpectedExceptionBaseAttribute Constructor (String)

Initializes a new instance of the ExpectedExceptionBaseAttribute class.

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

Syntax

'Declaration
Protected Sub New ( _
    noExceptionMessage As String _
)
protected ExpectedExceptionBaseAttribute(
    string noExceptionMessage
)
protected:
ExpectedExceptionBaseAttribute(
    String^ noExceptionMessage
)
new : 
        noExceptionMessage:string -> ExpectedExceptionBaseAttribute
protected function ExpectedExceptionBaseAttribute(
    noExceptionMessage : String
)

Parameters

  • noExceptionMessage
    Type: System.String
    If the test fails because an exception was not thrown, this message is included in the test result.

Remarks

Initializes the no-exception message.

.NET Framework Security

See Also

Reference

ExpectedExceptionBaseAttribute Class

ExpectedExceptionBaseAttribute Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace