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

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

extend bus vtp testcase

parent 83253d64
No related branches found
No related tags found
No related merge requests found
......@@ -31,8 +31,11 @@
using System.IO;
using System.Xml;
using System.Xml.Linq;
using System.Xml.XPath;
using NUnit.Framework;
using TUGraz.VectoCommon.Models;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.InputData.FileIO.JSON;
using TUGraz.VectoCore.Models.Simulation.Impl;
using TUGraz.VectoCore.OutputData;
......@@ -116,6 +119,11 @@ namespace TUGraz.VectoCore.Tests.Integration.VTP
var validator = new XMLValidator(XmlReader.Create(vtpReport));
validator.ValidateXML(XmlDocumentType.VTPReport);
Assert.IsNull(validator.ValidationError);
var vtpXml = XDocument.Load(vtpReport);
Assert.AreEqual(14.2, vtpXml.Document?.XPathSelectElement("//*[local-name()='Declared']")?.Value.ToDouble(), 1e-1);
Assert.AreEqual(1.1323, vtpXml.Document?.XPathSelectElement("//*[local-name()='C_VTP']")?.Value.ToDouble(), 1e-4);
}
[Category("LongRunning")]
......
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