Code covered by the BSD License  

Highlights from
MATLAB xUnit Test Framework

image thumbnail
from MATLAB xUnit Test Framework by Steve Eddins
MATLAB xUnit is a unit test framework for MATLAB code.

BadFixture
classdef BadFixture < TestCase
    
    methods
        function self = BadFixture(name)
            self = self@TestCase(name);
        end
        
        function setUp(self)
            throw(MException('setUpError:BadFixture', ...
                'BadFixture setUp method always throws exception'));
        end
        
        function testMethod(self)
        end
    end
end

Contact us at files@mathworks.com