ExpectedExceptionAttribute Properties

Include Protected Members
Include Inherited Members

The ExpectedExceptionAttribute type exposes the following members.

Properties

  Name Description
Public property AllowDerivedTypes
Public property ExceptionType Gets the expected exception type.
Protected property NoExceptionMessage Infrastructure. (Inherited from ExpectedExceptionBaseAttribute.)
Protected property TestContext Infrastructure. (Inherited from ExpectedExceptionBaseAttribute.)
Public property TypeId When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.)

Top

See Also

Reference

ExpectedExceptionAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace