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 ec74b5c6 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

activated some skipped tests

parent 1acdf170
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@
* limitations under the Licence.
*/
using System.Configuration;
using TUGraz.VectoCore.Utils;
using TUGraz.VectoCore.Exceptions;
using TUGraz.VectoCore.Tests.Utils;
......@@ -331,14 +332,19 @@ namespace TUGraz.VectoCore.Tests.Models.Simulation
[TestMethod]
public void AuxDeclarationWrongConfiguration()
{
// test what happens if there was a wrong auxiliary configuration in declaration mode
Assert.Inconclusive();
}
var fileWriter = new FileOutputWriter("AuxReadJobFileDeclarationMode", "");
var sumData = new SummaryDataContainer(fileWriter);
var jobContainer = new JobContainer(sumData);
var inputData = JSONInputDataFactory.ReadJsonJob(@"TestData\Jobs\40t_Long_Haul_Truck_wrong_AUX.vecto");
var runsFactory = new SimulatorFactory(ExecutionMode.Declaration, inputData, fileWriter);
jobContainer.AddRuns(runsFactory);
jobContainer.Execute();
ResultFileHelper.TestSumFile(@"TestData\Results\Declaration\40t_Long_Haul_Truck.vsum",
@"AuxReadJobFileDeclarationMode.vsum");
[TestMethod]
public void AuxCycleAdditionalFieldMissing()
{
// test the case when the Padd field is missing (no direct auxiliary)
Assert.Inconclusive();
}
}
......
......@@ -30,10 +30,10 @@ namespace TUGraz.VectoCore.Tests.Models.Simulation
[TestMethod]
public void Pwheel_ReadCycle_Test()
{
IVehicleContainer container = new VehicleContainer();
var container = new VehicleContainer();
var inputData = "<t>,<Pwheel>,<Gear>,<n>,<Padd>\n1,89,2,1748,1.300\n2,120,2,1400,0.4";
Stream cycleFile = new MemoryStream(Encoding.UTF8.GetBytes(inputData));
var cycleFile = new MemoryStream(Encoding.UTF8.GetBytes(inputData));
var drivingCycle = DrivingCycleDataReader.ReadFromStream(cycleFile, CycleType.PWheel);
var gearbox = new Gearbox(container,
......@@ -72,7 +72,7 @@ namespace TUGraz.VectoCore.Tests.Models.Simulation
// prepare input data
var inputData = "<t>,<Pwheel>,<Gear>,<n>,<Padd>\n1,89,2,1748,1.300\n2,120,2,1400,0.4";
Stream cycleFile = new MemoryStream(Encoding.UTF8.GetBytes(inputData));
var cycleFile = new MemoryStream(Encoding.UTF8.GetBytes(inputData));
var drivingCycle = DrivingCycleDataReader.ReadFromStream(cycleFile, CycleType.PWheel);
var fuelConsumption = new DataTable();
......
......@@ -719,6 +719,9 @@
<None Include="TestData\Integration\FullPowerTrain\unlimited.vacc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="TestData\Jobs\40t_Long_Haul_Truck_wrong_AUX.vecto">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="TestData\Jobs\40t_Long_Haul_Truck_invalid-JSON.vecto">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
......
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