Compartilhar via


ExpectedExceptionAttribute Construtores

Definição

Sobrecargas

ExpectedExceptionAttribute()

Construtor para uma exceção não específica

ExpectedExceptionAttribute(String)
ExpectedExceptionAttribute(Type)

Construtor para um determinado tipo de exceção

ExpectedExceptionAttribute()

Construtor para uma exceção não específica

public ExpectedExceptionAttribute();

Aplica-se a

ExpectedExceptionAttribute(String)

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

Parâmetros

exceptionName
String

Aplica-se a

ExpectedExceptionAttribute(Type)

Construtor para um determinado tipo de exceção

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

Parâmetros

exceptionType
Type

O tipo da exceção esperada

Aplica-se a