
% Copyright 2020 The MathWorks, Inc.

classdef BaselineTest < sltest.TestCase
   methods (Test)
       function testOne(testCase)
           simOut = testCase.simulate('sltestMATLABBasedTestExample');
           testCase.verifySignalsMatch(simOut,'baselineOne.mat');
       end
       function testTwo(testCase)
           testCase.loadSystem('sltestMATLABBasedTestExample');
           evalin('base','gain2_var = 2.01;');
           simOut = testCase.simulate('sltestMATLABBasedTestExample','WithHarness','sltestMATLAbBasedTestExample_harness');
           testCase.verifySignalsMatch(simOut,'baselineOne.mat','AbsTol',0.015);
       end
   end
end