Throws.InstanceOf Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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