Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit f849e303 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

Compiler Warnings

parent 078a687e
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,13 @@
<ProjectReference Include="..\VectoCore\VectoCore\VectoCore.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="PresentationFramework">
<HintPath>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\PresentationFramework.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="HelperTests\" />
<Folder Include="Testdata\bugreports\" />
......@@ -119,10 +126,6 @@
</None>
</ItemGroup>
<ItemGroup>
<Reference Include="PresentationFramework">
<HintPath>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\PresentationFramework.dll</HintPath>
</Reference>
</ItemGroup>
</Project>
......@@ -642,7 +642,7 @@ namespace TUGraz.VectoCore.Tests.Reports
var pClutchOut = row[ModalResultField.P_clutch_out.GetName()];
if (pClutchOut != DBNull.Value) {
Assert.AreEqual(pGbxIn.Value(), (pClutchOut as Watt).Value(), 1E-3, "time: {0} distance: {1}", time, distance);
Assert.AreEqual(pEngOut.Value(), (pClutchOut as Watt + pClutchLoss).Value(), 1E-3, "time: {0} distance: {1}",
Assert.AreEqual(pEngOut.Value(), ((pClutchOut as Watt) + pClutchLoss).Value(), 1E-3, "time: {0} distance: {1}",
time, distance);
}
......@@ -794,7 +794,7 @@ namespace TUGraz.VectoCore.Tests.Reports
//if (pClutchOut != DBNull.Value) {
Assert.AreEqual(pGbxIn.Value(), (pClutchOut as Watt).Value(), 1E-3, "time: {0} distance: {1}", time, distance);
var pP1Out = row[p1OutColumn] as Watt;
Assert.AreEqual(pP1Out.Value(), (pClutchOut as Watt + pClutchLoss).Value(), 1E-3, "time: {0} distance: {1}",
Assert.AreEqual(pP1Out.Value(), ((pClutchOut as Watt) + pClutchLoss).Value(), 1E-3, "time: {0} distance: {1}",
time, distance);
var pP1Loss = row[p1LossColumn] as Watt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment