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

xunit.mocktests.A
% Class A is a TestCase subclass containing two test cases (test_a and test_b).

% Copyright 2013 The MathWorks, Inc.

classdef A < TestCase
    
    methods
        function self = A(name)
            self = self@TestCase(name);
        end
        
        function test_a(self)
        end
        
        function test_b(self)
        end
    end
    
end

Contact us