Throws.InstanceOf Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
InstanceOf(Type) |
Creates a constraint specifying the type of exception expected |
InstanceOf<T>() |
Creates a constraint specifying the type of exception expected |
InstanceOf(Type)
Creates a constraint specifying the type of exception expected
public static NUnit.Framework.Constraints.InstanceOfTypeConstraint InstanceOf (Type expectedType);
static member InstanceOf : Type -> NUnit.Framework.Constraints.InstanceOfTypeConstraint
Parameters
- expectedType
- Type
Returns
Applies to
InstanceOf<T>()
Creates a constraint specifying the type of exception expected
public static NUnit.Framework.Constraints.InstanceOfTypeConstraint InstanceOf<T> ();
static member InstanceOf : unit -> NUnit.Framework.Constraints.InstanceOfTypeConstraint
Type Parameters
- T