Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/GrassCoverErosionInwardsInputTest.cs =================================================================== diff -u -rb634d74a0a06b143f275d94868a559ab18a048bf -rba1d2c3b299441a10efb6c7c044eccb86c9dc4a1 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/GrassCoverErosionInwardsInputTest.cs (.../GrassCoverErosionInwardsInputTest.cs) (revision b634d74a0a06b143f275d94868a559ab18a048bf) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/GrassCoverErosionInwardsInputTest.cs (.../GrassCoverErosionInwardsInputTest.cs) (revision ba1d2c3b299441a10efb6c7c044eccb86c9dc4a1) @@ -100,20 +100,23 @@ { // Setup var input = new GrassCoverErosionInwardsInput(); - var foreshoreSection = new RoughnessProfileSection(new Point2D(1.1, 2.2), new Point2D(3.3, 4.4), 1.1); - var dikeSection = new RoughnessProfileSection(new Point2D(3.3, 4.4), new Point2D(5.5, 6.6), 2.2); + var sections = new[] + { + new RoughnessProfileSection(new Point2D(1.1, 2.2), new Point2D(3.3, 4.4), 1.1), + new RoughnessProfileSection(new Point2D(3.3, 4.4), new Point2D(5.5, 6.6), 2.2) + }; // Call - input.SetGeometry(new[] - { - foreshoreSection, - dikeSection - }, foreshoreDikeGeometryPoints); + input.SetGeometry(sections, foreshoreDikeGeometryPoints); // Assert - Assert.AreEqual(foreshoreSection, input.ForeshoreGeometry.Single()); - Assert.AreEqual(dikeSection, input.DikeGeometry.Single()); Assert.AreEqual(foreshoreDikeGeometryPoints, input.ForeshoreDikeGeometryPoints); + + var foreshoreSection = sections.Take(foreshoreDikeGeometryPoints); + Assert.AreEqual(foreshoreSection, input.ForeshoreGeometry); + + var dikeSection = sections.Skip(foreshoreDikeGeometryPoints); + Assert.AreEqual(dikeSection, input.DikeGeometry); } } } \ No newline at end of file