Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs =================================================================== diff -u -r9dc4775788ed190d86a0bc797b4ee2bcc79995c2 -ra722967209e56d9af9e59ef95b28ad91f7fe5b42 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs) (revision 9dc4775788ed190d86a0bc797b4ee2bcc79995c2) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsViewTest.cs) (revision a722967209e56d9af9e59ef95b28ad91f7fe5b42) @@ -180,7 +180,7 @@ // Assert DataGridViewControl locationsDataGridViewControl = GetLocationsDataGridViewControl(); DataGridViewRowCollection rows = locationsDataGridViewControl.Rows; - Assert.AreEqual(5, rows.Count); + Assert.AreEqual(4, rows.Count); DataGridViewCellCollection cells = rows[0].Cells; Assert.AreEqual(6, cells.Count); @@ -203,7 +203,7 @@ cells = rows[2].Cells; Assert.AreEqual(6, cells.Count); Assert.AreEqual(false, cells[locationCalculateColumnIndex].FormattedValue); - Assert.AreEqual(false, cells[includeIllustrationPointsColumnIndex].FormattedValue); + Assert.AreEqual(true, cells[includeIllustrationPointsColumnIndex].FormattedValue); Assert.AreEqual("3", cells[locationNameColumnIndex].FormattedValue); Assert.AreEqual("3", cells[locationIdColumnIndex].FormattedValue); Assert.AreEqual(new Point2D(3, 3).ToString(), cells[locationColumnIndex].FormattedValue); @@ -216,15 +216,6 @@ Assert.AreEqual("4", cells[locationNameColumnIndex].FormattedValue); Assert.AreEqual("4", cells[locationIdColumnIndex].FormattedValue); Assert.AreEqual(new Point2D(4, 4).ToString(), cells[locationColumnIndex].FormattedValue); - Assert.AreEqual("-", cells[locationDesignWaterlevelColumnIndex].FormattedValue); - - cells = rows[4].Cells; - Assert.AreEqual(6, cells.Count); - Assert.AreEqual(false, cells[locationCalculateColumnIndex].FormattedValue); - Assert.AreEqual(true, cells[includeIllustrationPointsColumnIndex].FormattedValue); - Assert.AreEqual("5", cells[locationNameColumnIndex].FormattedValue); - Assert.AreEqual("5", cells[locationIdColumnIndex].FormattedValue); - Assert.AreEqual(new Point2D(5, 5).ToString(), cells[locationColumnIndex].FormattedValue); Assert.AreEqual(1.01.ToString(CultureInfo.CurrentCulture), cells[locationDesignWaterlevelColumnIndex].FormattedValue); } @@ -243,7 +234,7 @@ object dataGridViewSource = locationsDataGridView.DataSource; DataGridViewRowCollection rows = locationsDataGridView.Rows; rows[0].Cells[locationCalculateColumnIndex].Value = true; - Assert.AreEqual(5, rows.Count); + Assert.AreEqual(4, rows.Count); const double designWaterLevel = 10.23; var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(10, "10", 10.0, 10.0) @@ -289,7 +280,7 @@ IllustrationPointsControl illustrationPointsControl = GetIllustrationPointsControl(); DataGridViewControl locationsDataGridViewControl = GetLocationsDataGridViewControl(); - locationsDataGridViewControl.SetCurrentCell(locationsDataGridViewControl.GetCell(3, 0)); + locationsDataGridViewControl.SetCurrentCell(locationsDataGridViewControl.GetCell(2, 0)); // Precondition CollectionAssert.IsEmpty(illustrationPointsControl.Data); @@ -306,8 +297,8 @@ ObservableList locations = view.FailureMechanism.HydraulicBoundaryLocations; // Call - locations[3].DesignWaterLevelCalculation1.Output = output; - locations[3].NotifyObservers(); + locations[2].DesignWaterLevelCalculation1.Output = output; + locations[2].NotifyObservers(); // Assert IEnumerable expectedControlItems = CreateControlItems(generalResult);