Partager via


Throws.TypeOf Méthode

Définition

Surcharges

TypeOf(Type)

Crée une contrainte spécifiant le type exact d’exception attendu

TypeOf<T>()

Crée une contrainte spécifiant le type exact d’exception attendu

TypeOf(Type)

Crée une contrainte spécifiant le type exact d’exception attendu

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

Paramètres

expectedType
Type

Retours

S’applique à

TypeOf<T>()

Crée une contrainte spécifiant le type exact d’exception attendu

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

Paramètres de type

T

Retours

S’applique à