Partager via


ExpectedExceptionAttribute Constructeurs

Définition

Surcharges

ExpectedExceptionAttribute()

Constructeur pour une exception non spécifique

ExpectedExceptionAttribute(String)
ExpectedExceptionAttribute(Type)

Constructeur pour un type d’exception donné

ExpectedExceptionAttribute()

Constructeur pour une exception non spécifique

public ExpectedExceptionAttribute();

S’applique à

ExpectedExceptionAttribute(String)

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

Paramètres

exceptionName
String

S’applique à

ExpectedExceptionAttribute(Type)

Constructeur pour un type d’exception donné

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

Paramètres

exceptionType
Type

Type de l’exception attendue

S’applique à