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

预期异常的类型

适用于