Freigeben über


ExpectedExceptionAttribute Konstruktoren

Definition

Überlädt

ExpectedExceptionAttribute()

Konstruktor für eine nicht spezifische Ausnahme

ExpectedExceptionAttribute(String)
ExpectedExceptionAttribute(Type)

Konstruktor für einen bestimmten Ausnahmetyp

ExpectedExceptionAttribute()

Konstruktor für eine nicht spezifische Ausnahme

public ExpectedExceptionAttribute();

Gilt für:

ExpectedExceptionAttribute(String)

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

Parameter

exceptionName
String

Gilt für:

ExpectedExceptionAttribute(Type)

Konstruktor für einen bestimmten Ausnahmetyp

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

Parameter

exceptionType
Type

Der Typ der erwarteten Ausnahme

Gilt für: