Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresResultViewInfoTest.cs =================================================================== diff -u -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 -rdd8f41ce9d9ff9fd570874721a114560c7a71013 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresResultViewInfoTest.cs (.../StabilityPointStructuresResultViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresResultViewInfoTest.cs (.../StabilityPointStructuresResultViewInfoTest.cs) (revision dd8f41ce9d9ff9fd570874721a114560c7a71013) @@ -19,7 +19,9 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using System.Collections.Generic; +using System.Drawing; using System.Linq; using Core.Common.Gui.Plugin; using Core.Common.TestUtil; @@ -73,7 +75,7 @@ var context = new FailureMechanismSectionResultContext(failureMechanism.SectionResults, failureMechanism); // Call - var viewData = info.GetViewData(context); + object viewData = info.GetViewData(context); // Assert Assert.AreSame(failureMechanism.SectionResults, viewData); @@ -87,7 +89,7 @@ var constructionResultView = new StabilityPointStructuresFailureMechanismResultView(); // Call - var viewName = info.GetViewName(constructionResultView, failureMechanism.SectionResults); + string viewName = info.GetViewName(constructionResultView, failureMechanism.SectionResults); // Assert Assert.AreEqual("Resultaat", viewName); @@ -97,7 +99,7 @@ public void ViewType_Always_ReturnsViewType() { // Call - var viewType = info.ViewType; + Type viewType = info.ViewType; // Assert Assert.AreEqual(typeof(StabilityPointStructuresFailureMechanismResultView), viewType); @@ -107,7 +109,7 @@ public void DataType_Always_ReturnsDataType() { // Call - var dataType = info.DataType; + Type dataType = info.DataType; // Assert Assert.AreEqual(typeof(FailureMechanismSectionResultContext), dataType); @@ -117,7 +119,7 @@ public void ViewDataType_Always_ReturnsViewDataType() { // Call - var viewDataType = info.ViewDataType; + Type viewDataType = info.ViewDataType; // Assert Assert.AreEqual(typeof(IEnumerable), viewDataType); @@ -127,7 +129,7 @@ public void Image_Always_ReturnsGenericInputOutputIcon() { // Call - var image = info.Image; + Image image = info.Image; // Assert TestHelper.AssertImagesAreEqual(RingtoetsCommonFormsResources.FailureMechanismSectionResultIcon, image); @@ -147,7 +149,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSection); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -175,7 +177,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSection); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -203,7 +205,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSection); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsTrue(closeForData); @@ -221,7 +223,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, failureMechanism); + bool closeForData = info.CloseForData(view, failureMechanism); // Assert Assert.IsTrue(closeForData); @@ -238,7 +240,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, new StabilityPointStructuresFailureMechanism()); + bool closeForData = info.CloseForData(view, new StabilityPointStructuresFailureMechanism()); // Assert Assert.IsFalse(closeForData); @@ -260,7 +262,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, failureMechanismContext); + bool closeForData = info.CloseForData(view, failureMechanismContext); // Assert Assert.IsTrue(closeForData); @@ -284,7 +286,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, failureMechanismContext); + bool closeForData = info.CloseForData(view, failureMechanismContext); // Assert Assert.IsFalse(closeForData);