Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -rab676d2163511e70dff41634d24a18e86b4248f4 -rdd8f41ce9d9ff9fd570874721a114560c7a71013 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision ab676d2163511e70dff41634d24a18e86b4248f4) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationGroupContextTreeNodeInfoTest.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.IO; using System.Linq; using System.Windows.Forms; @@ -136,7 +137,7 @@ assessmentSection); // Call - var children = info.ChildNodeObjects(groupContext); + object[] children = info.ChildNodeObjects(groupContext); // Assert CollectionAssert.IsEmpty(children); @@ -164,7 +165,7 @@ assessmentSection); // Call - var children = info.ChildNodeObjects(groupContext).ToArray(); + object[] children = info.ChildNodeObjects(groupContext).ToArray(); // Assert Assert.AreEqual(group.Children.Count, children.Length); @@ -698,7 +699,7 @@ // Call TestHelper.AssertLogMessages(() => contextMenu.Items[contextMenuCalculateAllIndexRootGroup].PerformClick(), messages => { - var messageList = messages.ToList(); + List messageList = messages.ToList(); // Assert Assert.AreEqual(12, messageList.Count); @@ -769,7 +770,7 @@ // Call TestHelper.AssertLogMessages(() => contextMenu.Items[contextMenuValidateAllIndexRootGroup].PerformClick(), messages => { - var messageList = messages.ToList(); + List messageList = messages.ToList(); // Assert Assert.AreEqual(4, messageList.Count); @@ -821,7 +822,7 @@ // Assert Assert.AreEqual(2, group.Children.Count); - var newlyAddedItem = group.Children.Last(); + ICalculationBase newlyAddedItem = group.Children.Last(); Assert.IsInstanceOf(newlyAddedItem); Assert.AreEqual("Nieuwe map (1)", newlyAddedItem.Name, "An item with the same name default name already exists, therefore '(1)' needs to be appended."); @@ -867,7 +868,7 @@ // Assert Assert.AreEqual(2, group.Children.Count); - var newlyAddedItem = group.Children.Last(); + ICalculationBase newlyAddedItem = group.Children.Last(); Assert.IsInstanceOf>(newlyAddedItem); Assert.AreEqual("Nieuwe berekening (1)", newlyAddedItem.Name, "An item with the same name default name already exists, therefore '(1)' needs to be appended."); @@ -1064,7 +1065,7 @@ contextMenu.Items[contextMenuGenerateCalculationsIndexRootGroup].PerformClick(); // Then - var closingStructuresCalculations = failureMechanism.Calculations.OfType>().ToArray(); + StructuresCalculation[] closingStructuresCalculations = failureMechanism.Calculations.OfType>().ToArray(); Assert.AreEqual(2, closingStructuresCalculations.Length); Assert.AreEqual(expectedNewName, closingStructuresCalculations[1].Name); }