Declares that the associated test is expected to throw an exception of
a particular type.
Namespace:
MbUnit.FrameworkAssembly: 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
System..::.Object
System..::.Attribute
Gallio.Framework.Pattern..::.PatternAttribute
Gallio.Framework.Pattern..::.DecoratorPatternAttribute
Gallio.Framework.Pattern..::.TestMethodDecoratorPatternAttribute
MbUnit.Framework..::.ExpectedExceptionAttribute
MbUnit.Framework..::.ExpectedArgumentExceptionAttribute
MbUnit.Framework..::.ExpectedArgumentNullExceptionAttribute
MbUnit.Framework..::.ExpectedArgumentOutOfRangeExceptionAttribute
System..::.Attribute
Gallio.Framework.Pattern..::.PatternAttribute
Gallio.Framework.Pattern..::.DecoratorPatternAttribute
Gallio.Framework.Pattern..::.TestMethodDecoratorPatternAttribute
MbUnit.Framework..::.ExpectedExceptionAttribute
MbUnit.Framework..::.ExpectedArgumentExceptionAttribute
MbUnit.Framework..::.ExpectedArgumentNullExceptionAttribute
MbUnit.Framework..::.ExpectedArgumentOutOfRangeExceptionAttribute
