[b4b313]: / matlab_xunit_3.1 / matlab_xunit / xunit / TestCaseInDir.m

Download this file

31 lines (27 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%TestCaseInDir Test case requiring temporary directory change
% The TestCaseInDir class defines a test case that has to be run by first
% changing to a specified directory.
%
% The setUp method adds the starting directory to the path and then uses cd to
% change into the specified directory. The tearDown method restores the
% original path and directory.
%
% TestCaseInDir is used by MATLAB xUnit's own test suite in order to test itself.
%
% TestCaseInDir methods:
% TestCaseInDir - Constructor
%
% See also TestCase, TestCaseWithAddPath, TestComponent
% Steven L. Eddins
% Copyright 2008-2009 The MathWorks, Inc.
classdef TestCaseInDir < TestCase & TestComponentInDir
methods
function self = TestCaseInDir(methodName, testDirectory)
%TestCaseInDir Constructor
% TestCaseInDir(testName, testDirectory) constructs a test case
% using the specified name and located in the specified directory.
self = self@TestCase(methodName);
self = self@TestComponentInDir(testDirectory);
end
end
end