Throws.TypeOf 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
| 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