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

See Also

Reference

ExpectedExceptionBaseAttribute Class

ExpectedExceptionBaseAttribute Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace