Skip to content

Commit 5f548fe

Browse files
authored
Merge pull request #4 from ChezJe/dev
Added tests
2 parents c571db5 + 6ff8807 commit 5f548fe

4 files changed

Lines changed: 26 additions & 21 deletions

File tree

WorkshopGuide.m

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

resources/project/Project.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
</Category>
153153
</Info>
154154
</File>
155-
<File Location="testall.m">
155+
<File Location="tSimulateModel.m">
156156
<Info>
157157
<Category UUID="FileClassCategory">
158158
<Label UUID="test"/>

tests/tSimulateModel.m

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
classdef tSimulateModel < matlab.unittest.TestCase
2+
%TESTALL - Unit tests for SimulationModel behavior
3+
% Contains tests that verify SimulationModel produces expected SimData.
4+
5+
methods (Test)
6+
function testSimData(testCase)
7+
8+
% Create model instance and run its simulation
9+
sObj = SimulationModel;
10+
simulate(sObj);
11+
12+
% Verify SimData object type
13+
testCase.verifyClass(sObj.SimData,'SimData');
14+
15+
% Verify expected set of data names produced by the simulation
16+
import matlab.unittest.constraints.IsSameSetAs
17+
testCase.verifyThat(sObj.SimData.DataNames,...
18+
IsSameSetAs(["Receptor","Complex","RO","Drug"]));
19+
end
20+
end
21+
end
22+

tests/testall.m

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)