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

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

updated test for 1hz

parent 4b0b0ff1
No related branches found
No related tags found
No related merge requests found
......@@ -224,11 +224,12 @@ namespace TUGraz.VectoCore.Tests.Integration
var modFile1Hz = VectoCSVFile.Read(modFileName1Hz);
// test if line count matches the second count
var maxSeconds =
(int)Math.Ceiling(modFile.Rows.Cast<DataRow>().Last().ParseDouble(ModalResultField.time.GetShortCaption()));
var maxSeconds = modFile.Rows.Cast<DataRow>().Last().ParseDouble(ModalResultField.time.GetShortCaption());
var lineCount1Hz = modFile1Hz.Rows.Count;
Assert.IsTrue(lineCount1Hz == maxSeconds);
AssertHelper.AreRelativeEqual(lineCount1Hz, maxSeconds,
string.Format("LineCount must equal max seconds. Lines={0}, MaxSeconds={1}", lineCount1Hz,
maxSeconds), 1);
// test max distance
var maxDistance = modFile.Rows.Cast<DataRow>().Last().ParseDouble(ModalResultField.dist.GetShortCaption());
......
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