Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/FailureMechanism/FailureMechanismSectionTest.cs =================================================================== diff -u -r1e4d77c17c6eac78bfd705efdff9e52b4fca2c7e -rdec46d5efaad5332ffb2a96e67ec11209ddc5515 --- Ringtoets/Common/test/Ringtoets.Common.Data.Test/FailureMechanism/FailureMechanismSectionTest.cs (.../FailureMechanismSectionTest.cs) (revision 1e4d77c17c6eac78bfd705efdff9e52b4fca2c7e) +++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/FailureMechanism/FailureMechanismSectionTest.cs (.../FailureMechanismSectionTest.cs) (revision dec46d5efaad5332ffb2a96e67ec11209ddc5515) @@ -135,5 +135,23 @@ // Assert Assert.AreEqual(geometryPoints[1], endingPoint); } + + [Test] + public void GetSectionLength_SectionWithPoints_ReturnLength() + { + // Setup + var geometryPoints = new[] + { + new Point2D(1, 2), + new Point2D(3, 4) + }; + var section = new FailureMechanismSection("A", geometryPoints); + + // Call + double sectionLength = section.GetSectionLength(); + + // Assert + Assert.AreEqual(2.828427, sectionLength, 1e-6); + } } } \ No newline at end of file