Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/TechnicalInnovationResultViewInfoTest.cs =================================================================== diff -u -r275f2693e9148678accdd5c423ed18ea5c78d409 -ra1bba29ba0d84061cca88da8324957087d564db9 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/TechnicalInnovationResultViewInfoTest.cs (.../TechnicalInnovationResultViewInfoTest.cs) (revision 275f2693e9148678accdd5c423ed18ea5c78d409) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/TechnicalInnovationResultViewInfoTest.cs (.../TechnicalInnovationResultViewInfoTest.cs) (revision a1bba29ba0d84061cca88da8324957087d564db9) @@ -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; @@ -74,7 +76,7 @@ mocks.ReplayAll(); // Call - var viewData = info.GetViewData(context); + object viewData = info.GetViewData(context); // Assert Assert.AreSame(failureMechanism.SectionResults, viewData); @@ -89,7 +91,7 @@ using (var view = new TechnicalInnovationResultView()) { // Call - var viewName = info.GetViewName(view, failureMechanism.SectionResults); + string viewName = info.GetViewName(view, failureMechanism.SectionResults); // Assert Assert.AreEqual("Resultaat", viewName); @@ -100,7 +102,7 @@ public void ViewType_Always_ReturnsViewType() { // Call - var viewType = info.ViewType; + Type viewType = info.ViewType; // Assert Assert.AreEqual(typeof(TechnicalInnovationResultView), viewType); @@ -110,7 +112,7 @@ public void DataType_Always_ReturnsDataType() { // Call - var dataType = info.DataType; + Type dataType = info.DataType; // Assert Assert.AreEqual(typeof(FailureMechanismSectionResultContext), dataType); @@ -120,7 +122,7 @@ public void ViewDataType_Always_ReturnsViewDataType() { // Call - var viewDataType = info.ViewDataType; + Type viewDataType = info.ViewDataType; // Assert Assert.AreEqual(typeof(IEnumerable), viewDataType); @@ -130,7 +132,7 @@ public void Image_Always_ReturnsGenericInputOutputIcon() { // Call - var image = info.Image; + Image image = info.Image; // Assert TestHelper.AssertImagesAreEqual(RingtoetsCommonFormsResources.FailureMechanismSectionResultIcon, image); @@ -152,7 +154,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSection); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -180,7 +182,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSection); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -208,7 +210,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, assessmentSection); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsTrue(closeForData); @@ -227,7 +229,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, failureMechanism); + bool closeForData = info.CloseForData(view, failureMechanism); // Assert Assert.IsTrue(closeForData); @@ -245,7 +247,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, new TechnicalInnovationFailureMechanism()); + bool closeForData = info.CloseForData(view, new TechnicalInnovationFailureMechanism()); // Assert Assert.IsFalse(closeForData); @@ -267,7 +269,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, failureMechanismContext); + bool closeForData = info.CloseForData(view, failureMechanismContext); // Assert Assert.IsTrue(closeForData); @@ -290,7 +292,7 @@ view.Data = failureMechanism.SectionResults; // Call - var closeForData = info.CloseForData(view, failureMechanismContext); + bool closeForData = info.CloseForData(view, failureMechanismContext); // Assert Assert.IsFalse(closeForData);