Declares that the associated test is expected to throw an exception of a particular type.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.2.0.0 (3.2.528.0)

Syntax

C#
public class ExpectedExceptionAttribute : TestMethodDecoratorPatternAttribute
Visual Basic (Declaration)
Public Class ExpectedExceptionAttribute _
	Inherits TestMethodDecoratorPatternAttribute

Remarks

The expected contents of the exception message may optionally be specified.

Inheritance Hierarchy

See Also