共用方式為


ExpectedExceptionAttribute 建構函式

定義

多載

ExpectedExceptionAttribute()

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

ExpectedExceptionAttribute(String)
ExpectedExceptionAttribute(Type)

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

ExpectedExceptionAttribute()

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

public ExpectedExceptionAttribute();

適用於

ExpectedExceptionAttribute(String)

public ExpectedExceptionAttribute(string exceptionName);
new NUnit.Framework.ExpectedExceptionAttribute : string -> NUnit.Framework.ExpectedExceptionAttribute

參數

exceptionName
String

適用於

ExpectedExceptionAttribute(Type)

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

public ExpectedExceptionAttribute(Type exceptionType);
new NUnit.Framework.ExpectedExceptionAttribute : Type -> NUnit.Framework.ExpectedExceptionAttribute

參數

exceptionType
Type

預期的例外狀況類型

適用於