共用方式為


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

適用於