语言

ExpectedExceptionAttribute 类

定义

ExpectedExceptionAttribute

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public class ExpectedExceptionAttribute : NUnit.Framework.NUnitAttribute
type ExpectedExceptionAttribute = class
    inherit NUnitAttribute
继承
ExpectedExceptionAttribute
属性

构造函数

名称 说明
ExpectedExceptionAttribute()

非特定异常的构造函数

ExpectedExceptionAttribute(String)

ExpectedExceptionAttribute

ExpectedExceptionAttribute(Type)

给定类型的异常的构造函数

属性

名称 说明
ExceptionData

ExpectedExceptionAttribute

ExpectedException

ExpectedExceptionAttribute

ExpectedExceptionName

ExpectedExceptionAttribute

ExpectedMessage

ExpectedExceptionAttribute

Handler

ExpectedExceptionAttribute

MatchType

ExpectedExceptionAttribute

UserMessage

ExpectedExceptionAttribute

适用于