Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Helpers/ExportableFailureMechanismSectionHelperTest.cs =================================================================== diff -u -r7f7624f429bf4e356a48a203290c319c3d752fb5 -rc6abf7f3537baaba6e7a6108d115a0c27fd7f4a0 --- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Helpers/ExportableFailureMechanismSectionHelperTest.cs (.../ExportableFailureMechanismSectionHelperTest.cs) (revision 7f7624f429bf4e356a48a203290c319c3d752fb5) +++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Helpers/ExportableFailureMechanismSectionHelperTest.cs (.../ExportableFailureMechanismSectionHelperTest.cs) (revision c6abf7f3537baaba6e7a6108d115a0c27fd7f4a0) @@ -106,7 +106,7 @@ } [Test] - public void GetFailureMechanismSectionGeometry_SectionStartZeroAndEndExactlyOnConsecutiveReferenceLinePoints_ReturnExpectedPoints() + public void GetFailureMechanismSectionGeometry_SectionStartZeroAndSectionEndExactlyOnConsecutiveReferenceLinePoints_ReturnExpectedPoints() { // Setup const int sectionStart = 0; @@ -155,5 +155,34 @@ new Point2D(sectionEnd, 0) }, sectionPoints); } + + [Test] + public void GetFailureMechanismSectionGeometry_SectionStartAndEndBetweenTwoReferenceLinePoint_ReturnExpectedPoints() + { + // Setup + const int sectionStart = 10; + const int sectionEnd = 30; + var referenceLine = new ReferenceLine(); + referenceLine.SetGeometry(new [] + { + new Point2D(0, 0), + new Point2D(5, 0), + new Point2D(15, 0), + new Point2D(25, 0), + new Point2D(35, 0) + }); + + // Call + IEnumerable sectionPoints = ExportableFailureMechanismSectionHelper.GetFailureMechanismSectionGeometry(referenceLine, sectionStart, sectionEnd); + + // Assert + CollectionAssert.AreEqual(new[] + { + new Point2D(sectionStart, 0), + new Point2D(15, 0), + new Point2D(25, 0), + new Point2D(sectionEnd, 0) + }, sectionPoints); + } } } \ No newline at end of file