ConstraintFactory.TypeOf 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
TypeOf(Type) |
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. |
TypeOf<T>() |
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. |
TypeOf(Type)
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.
public NUnit.Framework.Constraints.ExactTypeConstraint TypeOf (Type expectedType);
member this.TypeOf : Type -> NUnit.Framework.Constraints.ExactTypeConstraint
Parameters
- expectedType
- Type
Returns
Applies to
TypeOf<T>()
Returns a constraint that tests whether the actual value is of the exact type supplied as an argument.
public NUnit.Framework.Constraints.ExactTypeConstraint TypeOf<T> ();
member this.TypeOf : unit -> NUnit.Framework.Constraints.ExactTypeConstraint
Type Parameters
- T