ExpectedExceptionAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 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
預期的例外狀況類型