共用方式為


TestCaseData.Throws 方法

定義

多載

Throws(String)

public NUnit.Framework.TestCaseData Throws(string exceptionName);
member this.Throws : string -> NUnit.Framework.TestCaseData

參數

exceptionName
String

傳回

適用於

Throws(Type)

public NUnit.Framework.TestCaseData Throws(Type exceptionType);
member this.Throws : Type -> NUnit.Framework.TestCaseData

參數

exceptionType
Type

傳回

適用於