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
- 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.
See Also
Reference
ExpectedExceptionBaseAttribute Class