Code covered by the BSD License  

Highlights from
MATLAB xUnit Test Framework

image thumbnail

MATLAB xUnit Test Framework

by

 

31 Jan 2009 (Updated )

MATLAB xUnit is a unit test framework for MATLAB code.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

TestCaseSubclass
%TestCaseSubclass TestCase subclass containing two passing tests

%   Steven L. Eddins
%   Copyright 2008 The MathWorks, Inc.

classdef TestCaseSubclass < TestCase
   methods
       function self = TestCaseSubclass(name)
           self = self@TestCase(name);
       end
       
       function testA(self)
       end
       
       function testB(self)
           % Intentionally fail this test case.
           assertFalse(true);
       end
   end
end

Contact us