%% Test Class of Output Value
% Use verifyClass to test the add5 function returns a double value.
% Function for unit testing:

type add5.m

% TestCase class containing test methods:

type Add5Test.m

% Create a test suite from the Add5Test class file.

suite = matlab.unittest.TestSuite.fromFile('Add5Test.m')

% Run the tests.

result = run(suite);

% Copyright 2012 The MathWorks, Inc.