Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresScenariosViewTest.cs =================================================================== diff -u -re60dbf2fd41434270cad4efba20446e19ede0d2e -rdd8f41ce9d9ff9fd570874721a114560c7a71013 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresScenariosViewTest.cs (.../ClosingStructuresScenariosViewTest.cs) (revision e60dbf2fd41434270cad4efba20446e19ede0d2e) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresScenariosViewTest.cs (.../ClosingStructuresScenariosViewTest.cs) (revision dd8f41ce9d9ff9fd570874721a114560c7a71013) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Windows.Forms; @@ -324,7 +325,7 @@ string[][] expectedComboBoxItemTexts = null) { var dataGridView = (DataGridView) new ControlTester("dataGridView").TheObject; - var rowCount = dataGridView.RowCount; + int rowCount = dataGridView.RowCount; if (shouldBeCleared) { @@ -338,18 +339,18 @@ Assert.AreEqual(failureMechanism.SectionResults.Count(), rowCount); Assert.AreEqual(failureMechanism.Calculations.Count(), dataGridViewColumn.Items.Count); - for (int i = 0; i < rowCount; i++) + for (var i = 0; i < rowCount; i++) { var cell = (DataGridViewComboBoxCell) dataGridView[1, i]; - var items = cell.Items.OfType>(); + IEnumerable> items = cell.Items.OfType>(); Assert.AreEqual(expectedComboBoxItemTexts[i], items.Select(r => r.DisplayName)); } } } private ClosingStructuresFailureMechanism CreateCompleteFailureMechanism() { - ClosingStructuresFailureMechanism failureMechanism = new ClosingStructuresFailureMechanism(); + var failureMechanism = new ClosingStructuresFailureMechanism(); var matchingPointA = new Point2D(0, 0); var matchingPointB = new Point2D(20, 20); var calculationA = new StructuresCalculation @@ -368,7 +369,7 @@ Structure = CreateStructure(matchingPointB) } }; - Point2D connectionPoint = new Point2D(10, 10); + var connectionPoint = new Point2D(10, 10); var failureMechanismSectionA = new FailureMechanismSection("sectionA", new[] { matchingPointA,