Düzenle

Aracılığıyla paylaş


ExpectedExceptionAttribute Constructors

Definition

Overloads

ExpectedExceptionAttribute()

Constructor for a non-specific exception

ExpectedExceptionAttribute(String)
ExpectedExceptionAttribute(Type)

Constructor for a given type of exception

ExpectedExceptionAttribute()

Constructor for a non-specific exception

public ExpectedExceptionAttribute ();

Applies to

ExpectedExceptionAttribute(String)

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

Parameters

exceptionName
String

Applies to

ExpectedExceptionAttribute(Type)

Constructor for a given type of exception

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

Parameters

exceptionType
Type

The type of the expected exception

Applies to