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
ExpectedExceptionAttribute
Attributes

Constructors

ExpectedExceptionAttribute()

Constructor for a non-specific exception

ExpectedExceptionAttribute(String)
ExpectedExceptionAttribute(Type)

Constructor for a given type of exception

Properties

ExceptionData
ExpectedException
ExpectedExceptionName
ExpectedMessage
Handler
MatchType
UserMessage

Applies to