ExpectedExceptionBaseAttribute Constructor
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
protected ExpectedExceptionBaseAttribute()
protected:
ExpectedExceptionBaseAttribute()
new : unit -> ExpectedExceptionBaseAttribute
protected function ExpectedExceptionBaseAttribute()
Remarks
The no-exception message is initialized with the following default value:
Test method <test method name> did not throw an exception. An exception was expected by attribute <name of expected exception attribute> defined on the test method.
.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