語言

ExpectedExceptionAttribute 類別

定義

ExpectedExceptionAttribute

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

建構函式

名稱 Description
ExpectedExceptionAttribute()

非特定例外狀況的建構函式

ExpectedExceptionAttribute(String)

ExpectedExceptionAttribute

ExpectedExceptionAttribute(Type)

指定例外狀況類型的建構函式

屬性

名稱 Description
ExceptionData

ExpectedExceptionAttribute

ExpectedException

ExpectedExceptionAttribute

ExpectedExceptionName

ExpectedExceptionAttribute

ExpectedMessage

ExpectedExceptionAttribute

Handler

ExpectedExceptionAttribute

MatchType

ExpectedExceptionAttribute

UserMessage

ExpectedExceptionAttribute

適用於