Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs =================================================================== diff -u -re468a5451f59115ec6ca32c014da1baaa38866e8 -rf5bac1f11df4ee4881109371c50120763e303642 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs) (revision e468a5451f59115ec6ca32c014da1baaa38866e8) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs) (revision f5bac1f11df4ee4881109371c50120763e303642) @@ -26,7 +26,6 @@ using System.Windows.Forms; using Core.Common.Base; using Core.Common.Base.Geometry; -using Core.Common.TestUtil; using NUnit.Extensions.Forms; using NUnit.Framework; using Rhino.Mocks; @@ -338,48 +337,6 @@ } [Test] - public void CalculateForSelectedButton_ContributionZero_LogsErrorSelectionNotChanged() - { - // Setup - GrassCoverErosionOutwardsDesignWaterLevelLocationsView view = ShowFullyConfiguredDesignWaterLevelLocationsView(); - ObservableList locations = (ObservableList) view.Data; - var dataGridView = (DataGridView) new ControlTester("dataGridView").TheObject; - var dataGridViewSource = dataGridView.DataSource; - var rows = dataGridView.Rows; - rows[0].Cells[locationCalculateColumnIndex].Value = true; - - var mockRepository = new MockRepository(); - var guiServiceMock = mockRepository.StrictMock(); - var observer = mockRepository.StrictMock(); - locations.Attach(observer); - - IAssessmentSection assessmentSectionStub = mockRepository.Stub(); - assessmentSectionStub.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); - - mockRepository.ReplayAll(); - - view.AssessmentSection = assessmentSectionStub; - view.CalculationGuiService = guiServiceMock; - view.FailureMechanism = new GrassCoverErosionOutwardsFailureMechanism - { - Contribution = 0 - }; - var buttonTester = new ButtonTester("CalculateForSelectedButton", testForm); - - // Call - Action action = () => buttonTester.Click(); - - // Assert - TestHelper.AssertLogMessageIsGenerated(action, "De bijdrage van dit toetsspoor is nul. Daardoor is de doorsnede-eis onbepaald en kunnen de berekeningen niet worden uitgevoerd.", 1); - Assert.AreSame(dataGridViewSource, dataGridView.DataSource); - Assert.IsTrue((bool) rows[0].Cells[locationCalculateColumnIndex].Value); - Assert.IsFalse((bool) rows[1].Cells[locationCalculateColumnIndex].Value); - Assert.IsFalse((bool) rows[2].Cells[locationCalculateColumnIndex].Value); - - mockRepository.VerifyAll(); - } - - [Test] public void CalculateForSelectedButton_OneSelectedButCalculationGuiServiceNotSet_DoesNotThrowException() { // Setup