Skip to content

Commit

Permalink
Add TestSuite for FC_HeatingCurve
Browse files Browse the repository at this point in the history
  • Loading branch information
LZimmermannLZI committed Apr 4, 2022
1 parent cc60f9a commit 08bdff6
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.6">
<POU Name="FC_HeatingCurve_Test" Id="{8e411346-ca53-4fb8-b98d-0f5f8749ec27}" SpecialFunc="None">
<Declaration><![CDATA[FUNCTION_BLOCK FC_HeatingCurve_Test EXTENDS FB_TestSuite
VAR
END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[NegativeTAmb();
]]></ST>
</Implementation>
<Method Name="NegativeTAmb" Id="{9d838b89-4191-4965-a221-a3d4c4ffe851}">
<Declaration><![CDATA[METHOD NegativeTAmb : BOOL
VAR
HeatingCurve : FC_HeatingCurve;
Result : REAL;
ExpectedValue : REAL := -1;
END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[TEST('NegativeTAmb');
//Sum(one := 2, two := 2, result => Result);
//AssertEquals(Expected := ExpectedSum,
// Actual := Result,
// Message := 'The calculation is not correct');
//TEST_FINISHED();]]></ST>
</Implementation>
</Method>
<LineIds Name="FC_HeatingCurve_Test">
<LineId Id="9" Count="1" />
</LineIds>
<LineIds Name="FC_HeatingCurve_Test.NegativeTAmb">
<LineId Id="10" Count="7" />
<LineId Id="5" Count="0" />
</LineIds>
</POU>
</TcPlcObject>
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@
<Compile Include="POUs\SensorData\FB_SenDaHydMixCir.TcPOU">
<SubType>Code</SubType>
</Compile>
<Compile Include="POUs\Test\Components_Test\FC_HeatingCurve_Test.TcPOU">
<SubType>Code</SubType>
</Compile>
<Compile Include="POUs\Test\HeatSupplySystem_Test\FB_HSSController_Test.TcPOU">
<SubType>Code</SubType>
</Compile>
Expand All @@ -187,6 +190,7 @@
<Folder Include="POUs\Test" />
<Folder Include="POUs\SensorData" />
<Folder Include="POUs\Test\HeatSupplySystem_Test" />
<Folder Include="POUs\Test\Components_Test" />
<Folder Include="VISUs" />
<Folder Include="POUs" />
</ItemGroup>
Expand Down

0 comments on commit 08bdff6

Please sign in to comment.