TestCaseData.Throws 方法

定义

重载

Throws(String)
Throws(Type)

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

返回

适用于