Back to Nunit

ExactType Constraint

docs/articles/nunit/writing-tests/constraints/ExactTypeConstraint.md

latest330 B
Original Source

ExactType Constraint

ExactTypeConstraint tests that an object is an exact Type.

Constructor

csharp
ExactTypeConstraint(Type)

Syntax

csharp
Is.TypeOf(Type)
Is.TypeOf<T>()

Examples of Use

[!code-csharpTypeConstraintExamples]