InstanceOfTypeConstraint.

Matches<TActual>(TActual) Method

Summary

Test whether an object is of the specified type or a derived type
Namespace
TCLite.Constraints
Containing Type
InstanceOfTypeConstraint

Syntax

protected override bool Matches<TActual>(TActual actual)

Type Parameters

Name Description
TActual

Parameters

Name Type Description
actual TActual The object to be tested

Return Value

Type Description
bool True if the object is of the provided type or derives from it, otherwise false.