Declares that the associated test is expected to throw an InvalidOperationException.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

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

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..::.ExpectedInvalidOperationExceptionAttribute

See Also