diff --git a/VectoCore/VectoCoreTest/Integration/FullCycleDeclarationTest.cs b/VectoCore/VectoCoreTest/Integration/FullCycleDeclarationTest.cs index 32b0336b1739c3394bb5e1a6242587dd94bbeebe..c9a6d643270b49bed9adb670f399be51d3acf4e3 100644 --- a/VectoCore/VectoCoreTest/Integration/FullCycleDeclarationTest.cs +++ b/VectoCore/VectoCoreTest/Integration/FullCycleDeclarationTest.cs @@ -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());