Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 9aa9d366 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

updating testcases after changing whtc correction weighting factors

parent 381c2d6b
Branches
Tags
No related merge requests found
...@@ -66,10 +66,10 @@ namespace TUGraz.VectoCore.Tests.Integration.Declaration ...@@ -66,10 +66,10 @@ namespace TUGraz.VectoCore.Tests.Integration.Declaration
xmlInputReader = _kernel.Get<IXMLInputDataReader>(); xmlInputReader = _kernel.Get<IXMLInputDataReader>();
} }
[TestCase(null, 1.0, 44.9120687, TestName = "Engine CF - NONE"), [TestCase(null, 1.0, 44.96201185, TestName = "Engine CF - NONE"),
TestCase("CFRegPer", 1.2, 44.9120687 * 1.2, TestName = "Engine CF - CFRegPer"), TestCase("CFRegPer", 1.2, 44.96201185 * 1.2, TestName = "Engine CF - CFRegPer"),
TestCase("BFColdHot", 1.2, 44.9120687 * 1.2, TestName = "Engine CF - BFColdHod"), TestCase("BFColdHot", 1.2, 44.96201185 * 1.2, TestName = "Engine CF - BFColdHod"),
TestCase("CFNCV", 1.2, 44.9120687, TestName = "Engine CF - CFNCV") // has no influence - only for documentation purpose TestCase("CFNCV", 1.2, 44.96201185, TestName = "Engine CF - CFNCV") // has no influence - only for documentation purpose
] ]
public void TestEngineCorrectionFactors(string correctionFactor, double value, double expectedFc) public void TestEngineCorrectionFactors(string correctionFactor, double value, double expectedFc)
{ {
......
...@@ -129,9 +129,9 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration ...@@ -129,9 +129,9 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration
var whtc = DeclarationData.WHTCCorrection; var whtc = DeclarationData.WHTCCorrection;
var factors = new { var factors = new {
urban = new[] { 0.11, 0.17, 0.69, 0.98, 0.62, 1.0, 1.0, 1.0, 0.45, 0.0 }, urban = new[] { 0.0, 0.17, 0.69, 0.98, 0.62, 1.0, 1.0, 1.0, 0.45, 0.0 },
rural = new[] { 0.0, 0.3, 0.27, 0.0, 0.32, 0.0, 0.0, 0.0, 0.36, 0.22 }, rural = new[] { 0.0, 0.3, 0.27, 0.0, 0.32, 0.0, 0.0, 0.0, 0.36, 0.22 },
motorway = new[] { 0.89, 0.53, 0.04, 0.02, 0.06, 0.0, 0.0, 0.0, 0.19, 0.78 } motorway = new[] { 1.0, 0.53, 0.04, 0.02, 0.06, 0.0, 0.0, 0.0, 0.19, 0.78 }
}; };
var r = new Random(); var r = new Random();
...@@ -148,7 +148,7 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration ...@@ -148,7 +148,7 @@ namespace TUGraz.VectoCore.Tests.Models.Declaration
[TestCase] [TestCase]
public void WHTCLookupTestLongHaul() public void WHTCLookupTestLongHaul()
{ {
var expected = 1.015501; var expected = 1.0057;
var rural = 1.0265; var rural = 1.0265;
var urban = 1.0948; var urban = 1.0948;
......
...@@ -103,7 +103,7 @@ namespace TUGraz.VectoCore.Tests.Models.Simulation ...@@ -103,7 +103,7 @@ namespace TUGraz.VectoCore.Tests.Models.Simulation
var runs = factory.SimulationRuns().ToArray(); var runs = factory.SimulationRuns().ToArray();
var expected = new[] { 1.018867, 1.018867, 1.018867, 1.018867, 1.013299, 1.013299, 1.013299, 1.013299 }; var expected = new[] { 1.02, 1.02, 1.02, 1.02, 1.013299, 1.013299, 1.013299, 1.013299 };
for (var i = 0; i < 8; i++) for (var i = 0; i < 8; i++)
Assert.AreEqual( Assert.AreEqual(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment