Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismSectionRow.cs =================================================================== diff -u -rf730cc647492866c7c77b96c9e44b0bd4208142c -r7a61fedc1bcd30f11aab867b154fab81f40380b0 --- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismSectionRow.cs (.../FailureMechanismSectionRow.cs) (revision f730cc647492866c7c77b96c9e44b0bd4208142c) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismSectionRow.cs (.../FailureMechanismSectionRow.cs) (revision 7a61fedc1bcd30f11aab867b154fab81f40380b0) @@ -20,6 +20,7 @@ // All rights reserved. using System; +using Core.Common.Base.Data; using Ringtoets.Common.Data.FailureMechanism; namespace Ringtoets.Common.Forms.Views @@ -43,7 +44,7 @@ } Name = section.Name; - Length = section.Length; + Length = new RoundedDouble(2, section.Length); } /// @@ -55,6 +56,6 @@ /// Gets the length of the section. /// [m] /// - public double Length { get; } + public RoundedDouble Length { get; } } } \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/FailureMechanismSectionRowTest.cs =================================================================== diff -u -rf730cc647492866c7c77b96c9e44b0bd4208142c -r7a61fedc1bcd30f11aab867b154fab81f40380b0 --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/FailureMechanismSectionRowTest.cs (.../FailureMechanismSectionRowTest.cs) (revision f730cc647492866c7c77b96c9e44b0bd4208142c) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/FailureMechanismSectionRowTest.cs (.../FailureMechanismSectionRowTest.cs) (revision 7a61fedc1bcd30f11aab867b154fab81f40380b0) @@ -23,6 +23,7 @@ using Core.Common.Base.Geometry; using NUnit.Framework; using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Common.Data.TestUtil; using Ringtoets.Common.Forms.Views; namespace Ringtoets.Common.Forms.Test.Views @@ -56,7 +57,8 @@ // Assert Assert.AreEqual(section.Name, sectionRow.Name); - Assert.AreEqual(section.Length, sectionRow.Length); + Assert.AreEqual(2, sectionRow.Length.NumberOfDecimalPlaces); + Assert.AreEqual(section.Length, sectionRow.Length, sectionRow.Length.GetAccuracy()); } } } \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/FailureMechanismSectionsTableTest.cs =================================================================== diff -u -r62c0c80758d506b417ba3340e80b918419a6aa4d -r7a61fedc1bcd30f11aab867b154fab81f40380b0 --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/FailureMechanismSectionsTableTest.cs (.../FailureMechanismSectionsTableTest.cs) (revision 62c0c80758d506b417ba3340e80b918419a6aa4d) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/FailureMechanismSectionsTableTest.cs (.../FailureMechanismSectionsTableTest.cs) (revision 7a61fedc1bcd30f11aab867b154fab81f40380b0) @@ -21,9 +21,11 @@ using System; using System.Windows.Forms; +using Core.Common.Base.Data; using Core.Common.Base.Geometry; using NUnit.Framework; using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Common.Data.TestUtil; using Ringtoets.Common.Forms.Views; namespace Ringtoets.Common.Forms.Test.Views @@ -145,8 +147,11 @@ Assert.AreEqual(section.Name, rowCells[nameColumnIndex].Value); + + var sectionLength = (RoundedDouble) rowCells[lengthColumnIndex].Value; Assert.AreEqual(section.Length, - rowCells[lengthColumnIndex].Value); + sectionLength, + sectionLength.GetAccuracy()); } } }