Code development platform for open source projects from the European Union institutions

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

added inconclusive assertions for tests

parent 116b3d80
No related branches found
No related tags found
No related merge requests found
using System;
using System.Diagnostics;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Models.SimulationComponent.Data.Engine;
......@@ -15,6 +16,9 @@ namespace TUGraz.VectoCore.Tests.Dummy
var engineFile1 = @"TestData\Components\40t_Long_Haul_Truck.vfld";
var engineFile2 = @"E:\QUAM\Downloads\EngineFLD\Map_375c_BB1390_modTUG_R49_375c_BB1386.vfld";
if (!File.Exists(engineFile2))
Assert.Inconclusive("Confidential File not found. Test cannot run without file.");
var map1 = EngineFullLoadCurve.ReadFromFile(engineFile1, true);
var map2 = EngineFullLoadCurve.ReadFromFile(engineFile2, true);
......@@ -42,6 +46,9 @@ namespace TUGraz.VectoCore.Tests.Dummy
{
var engineFile2 = @"E:\QUAM\Downloads\EngineFLD\Map_375c_BB1390_modTUG_R49_375c_BB1386.vfld";
if (!File.Exists(engineFile2))
Assert.Inconclusive("Confidential File not found. Test cannot run without file.");
var map = EngineFullLoadCurve.ReadFromFile(engineFile2, true);
Assert.AreEqual(1208, map.FullLoadStationaryTorque(500.RPMtoRad()).Value(), 1e-3);
......
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