Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs =================================================================== diff -u -r6327fbda663d5d8ab7ec1c364d558361a22c014d -r6b3ad06df3252c2b4af8b9c755c832a723d8e18f --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs) (revision 6327fbda663d5d8ab7ec1c364d558361a22c014d) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs) (revision 6b3ad06df3252c2b4af8b9c755c832a723d8e18f) @@ -84,8 +84,7 @@ mockRepository.ReplayAll(); // Call - using (var view = new GrassCoverErosionOutwardsDesignWaterLevelLocationsView(new ObservableList(), - new GrassCoverErosionOutwardsFailureMechanism(), + using (var view = new GrassCoverErosionOutwardsDesignWaterLevelLocationsView(new GrassCoverErosionOutwardsFailureMechanism(), assessmentSection)) { // Assert @@ -102,13 +101,11 @@ mockRepository.ReplayAll(); // Call - TestDelegate call = () => new GrassCoverErosionOutwardsDesignWaterLevelLocationsView(new ObservableList(), - null, - assessmentSection); + TestDelegate call = () => new GrassCoverErosionOutwardsDesignWaterLevelLocationsView(null, assessmentSection); // Assert var exception = Assert.Throws(call); - Assert.AreEqual("failureMechanism", exception.ParamName); + Assert.AreEqual("locations", exception.ParamName); } [Test] @@ -622,10 +619,9 @@ { Contribution = 10 }; + failureMechanism.HydraulicBoundaryLocations.AddRange(locations); - var view = new GrassCoverErosionOutwardsDesignWaterLevelLocationsView(locations, - failureMechanism, - assessmentSection); + var view = new GrassCoverErosionOutwardsDesignWaterLevelLocationsView(failureMechanism, assessmentSection); form.Controls.Add(view); form.Show();