ExpectedExceptionAttribute ExpectedExceptionAttribute Class

Definition

ExpectedExceptionAttribute

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public class ExpectedExceptionAttribute : NUnit.Framework.NUnitAttribute
type ExpectedExceptionAttribute = class
    inherit NUnitAttribute
Inheritance
ExpectedExceptionAttributeExpectedExceptionAttribute
Attributes

Constructors

ExpectedExceptionAttribute() ExpectedExceptionAttribute()

Constructor for a non-specific exception

ExpectedExceptionAttribute(String) ExpectedExceptionAttribute(String)
ExpectedExceptionAttribute(Type) ExpectedExceptionAttribute(Type)

Constructor for a given type of exception

Properties

ExceptionData ExceptionData
ExpectedException ExpectedException
ExpectedExceptionName ExpectedExceptionName
ExpectedMessage ExpectedMessage
Handler Handler
MatchType MatchType
UserMessage UserMessage

Applies to