Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveHeightLocationsViewInfoTest.cs =================================================================== diff -u -r6a5d7b40b7ba4dcb73e393075338352d194e97c2 -ra1bba29ba0d84061cca88da8324957087d564db9 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveHeightLocationsViewInfoTest.cs (.../WaveHeightLocationsViewInfoTest.cs) (revision 6a5d7b40b7ba4dcb73e393075338352d194e97c2) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveHeightLocationsViewInfoTest.cs (.../WaveHeightLocationsViewInfoTest.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 System.Threading; using Core.Common.Gui; @@ -65,7 +67,7 @@ using (var view = new WaveHeightLocationsView()) { // Call - var viewName = info.GetViewName(view, Enumerable.Empty()); + string viewName = info.GetViewName(view, Enumerable.Empty()); // Assert Assert.AreEqual("Golfhoogtes", viewName); @@ -76,7 +78,7 @@ public void ViewDataType_Always_ReturnsViewDataType() { // Call - var viewDataType = info.ViewDataType; + Type viewDataType = info.ViewDataType; // Assert Assert.AreEqual(typeof(IEnumerable), viewDataType); @@ -86,7 +88,7 @@ public void DataType_Always_ReturnsDataType() { // Call - var dataType = info.DataType; + Type dataType = info.DataType; // Assert Assert.AreEqual(typeof(WaveHeightLocationsContext), dataType); @@ -96,7 +98,7 @@ public void Image_Always_ReturnsGenericInputOutputIcon() { // Call - var image = info.Image; + Image image = info.Image; // Assert TestHelper.AssertImagesAreEqual(RingtoetsCommonFormsResources.GenericInputOutputIcon, image); @@ -114,7 +116,7 @@ var context = new WaveHeightLocationsContext(assessmentSection); // Call - var viewData = info.GetViewData(context); + object viewData = info.GetViewData(context); // Assert Assert.AreSame(hydraulicBoundaryDatabase.Locations, viewData); @@ -129,7 +131,7 @@ var mocks = new MockRepository(); var assessmentSection = mocks.Stub(); - IGui guiStub = mocks.Stub(); + var guiStub = mocks.Stub(); guiStub.Stub(g => g.ProjectOpened += null).IgnoreArguments(); guiStub.Stub(g => g.ProjectOpened -= null).IgnoreArguments(); guiStub.Stub(g => g.ViewCommands).Return(mocks.Stub()); @@ -171,7 +173,7 @@ view.AssessmentSection = assessmentSection; // Call - var closeForData = info.CloseForData(view, assessmentSection); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsTrue(closeForData); @@ -193,7 +195,7 @@ view.AssessmentSection = assessmentSectionA; // Call - var closeForData = info.CloseForData(view, assessmentSectionB); + bool closeForData = info.CloseForData(view, assessmentSectionB); // Assert Assert.IsFalse(closeForData); @@ -214,7 +216,7 @@ view.Data = assessmentSectionA; // Call - var closeForData = info.CloseForData(view, new object()); + bool closeForData = info.CloseForData(view, new object()); // Assert Assert.IsFalse(closeForData); @@ -229,7 +231,7 @@ using (var view = new WaveHeightLocationsView()) { // Call - var closeForData = info.CloseForData(view, new object()); + bool closeForData = info.CloseForData(view, new object()); // Assert Assert.IsFalse(closeForData);