Partager via


Throws.InstanceOf Méthode

Définition

Surcharges

InstanceOf(Type)

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

InstanceOf<T>()

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

InstanceOf(Type)

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

public static NUnit.Framework.Constraints.InstanceOfTypeConstraint InstanceOf(Type expectedType);
static member InstanceOf : Type -> NUnit.Framework.Constraints.InstanceOfTypeConstraint

Paramètres

expectedType
Type

Retours

S’applique à

InstanceOf<T>()

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

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

Paramètres de type

T

Retours

S’applique à