Condividi tramite


Throws.TypeOf Metodo

Definizione

Overload

TypeOf(Type)

Crea un vincolo che specifica il tipo esatto di eccezione previsto

TypeOf<T>()

Crea un vincolo che specifica il tipo esatto di eccezione previsto

TypeOf(Type)

Crea un vincolo che specifica il tipo esatto di eccezione previsto

public static NUnit.Framework.Constraints.ExactTypeConstraint TypeOf(Type expectedType);
static member TypeOf : Type -> NUnit.Framework.Constraints.ExactTypeConstraint

Parametri

expectedType
Type

Restituisce

Si applica a

TypeOf<T>()

Crea un vincolo che specifica il tipo esatto di eccezione previsto

public static NUnit.Framework.Constraints.ExactTypeConstraint TypeOf<T>();
static member TypeOf : unit -> NUnit.Framework.Constraints.ExactTypeConstraint

Parametri di tipo

T

Restituisce

Si applica a