%% Test Instance of a Derived Class
% Use verifyInstanceOf to test inclusion in a class hierarchy.
% In a file in your current folder, create the ExampleHandle handle class.
% classdef ExampleHandle < handle
%     properties
%         Number = 1;
%     end
% end
% Create an instance of the defined class.

actual = ExampleHandle;

% Create a test case for interactive testing, and then verify that actual is an instance of the ExampleHandle class.

testCase = matlab.unittest.TestCase.forInteractiveUse;
verifyInstanceOf(testCase,actual,?ExampleHandle)

% Test if actual is an instance of the handle class. The test passes because ExampleHandle derives from the handle class.

verifyInstanceOf(testCase,actual,?handle)

%
% Copyright 2020 The MathWorks, Inc.