Condividi tramite


ExpectedExceptionAttribute Costruttori

Definizione

Overload

ExpectedExceptionAttribute()

Costruttore per un'eccezione non specifica

ExpectedExceptionAttribute(String)
ExpectedExceptionAttribute(Type)

Costruttore per un determinato tipo di eccezione

ExpectedExceptionAttribute()

Costruttore per un'eccezione non specifica

public ExpectedExceptionAttribute();

Si applica a

ExpectedExceptionAttribute(String)

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

Parametri

exceptionName
String

Si applica a

ExpectedExceptionAttribute(Type)

Costruttore per un determinato tipo di eccezione

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

Parametri

exceptionType
Type

Tipo dell'eccezione prevista

Si applica a