Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismViewTest.cs =================================================================== diff -u -ra2eb198a93d224a701f3fa4d6a68023e22ebcd79 -r3f1ac36864e2e1cbb1d41869e928eed116f0a310 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismViewTest.cs (.../ClosingStructuresFailureMechanismViewTest.cs) (revision a2eb198a93d224a701f3fa4d6a68023e22ebcd79) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismViewTest.cs (.../ClosingStructuresFailureMechanismViewTest.cs) (revision 3f1ac36864e2e1cbb1d41869e928eed116f0a310) @@ -255,23 +255,8 @@ MapDataTestHelper.AssertFailureMechanismSectionsStartPointMapData(failureMechanism.Sections, mapDataList[sectionsStartPointIndex]); MapDataTestHelper.AssertFailureMechanismSectionsEndPointMapData(failureMechanism.Sections, mapDataList[sectionsEndPointIndex]); MapDataTestHelper.AssertHydraulicBoundaryLocationsMapData(hydraulicBoundaryDatabase.Locations, mapDataList[hydraulicBoundaryLocationsIndex]); + MapDataTestHelper.AssertForeshoreProfiles(failureMechanism.ForeshoreProfiles, mapDataList[foreshoreProfilesIndex]); - var expectedGeometry = new[] - { - new[] - { - new Point2D(0, 0), - new Point2D(0, -1) - }, - new[] - { - new Point2D(0, -2), - new Point2D(0, -3) - } - }; - - MapDataTestHelper.AssertForeshoreProfiles(failureMechanism.ForeshoreProfiles, expectedGeometry, mapDataList[foreshoreProfilesIndex]); - AssertCalculationsMapData( failureMechanism.Calculations.Cast>(), mapDataList[calculationsIndex]); @@ -507,14 +492,7 @@ var foreshoreProfileData = map.Data.Collection.ElementAt(foreshoreProfilesIndex); // Precondition - MapDataTestHelper.AssertForeshoreProfiles(failureMechanism.ForeshoreProfiles, new[] - { - new[] - { - new Point2D(0, 0), - new Point2D(0, -1) - } - }, foreshoreProfileData); + MapDataTestHelper.AssertForeshoreProfiles(failureMechanism.ForeshoreProfiles, foreshoreProfileData); // Call failureMechanism.ForeshoreProfiles.Add(new TestForeshoreProfile(new[] @@ -525,21 +503,7 @@ failureMechanism.ForeshoreProfiles.NotifyObservers(); // Assert - var expectedGeometry = new[] - { - new[] - { - new Point2D(0, 0), - new Point2D(0, -1) - }, - new[] - { - new Point2D(0, -2), - new Point2D(0, -3) - } - }; - - MapDataTestHelper.AssertForeshoreProfiles(failureMechanism.ForeshoreProfiles, expectedGeometry, foreshoreProfileData); + MapDataTestHelper.AssertForeshoreProfiles(failureMechanism.ForeshoreProfiles, foreshoreProfileData); } }