Index: Ringtoets.sln
===================================================================
diff -u -raac499c97ccf17315df116d9d8a962bc1cbd009b -r37f9e2aae011fa8e80cf2e8f9de409cd6a25574a
--- Ringtoets.sln (.../Ringtoets.sln) (revision aac499c97ccf17315df116d9d8a962bc1cbd009b)
+++ Ringtoets.sln (.../Ringtoets.sln) (revision 37f9e2aae011fa8e80cf2e8f9de409cd6a25574a)
@@ -1839,7 +1839,6 @@
{18078167-A1C8-4545-BFAC-236E5386D4AA}.ReleaseForCodeCoverage|x86.ActiveCfg = ReleaseForCodeCoverage|x86
{18078167-A1C8-4545-BFAC-236E5386D4AA}.ReleaseForCodeCoverage|x86.Build.0 = ReleaseForCodeCoverage|x86
{F54583EA-781F-46AA-994E-C923AC6FB04F}.CreateInstaller|x86.ActiveCfg = Release|x86
- {F54583EA-781F-46AA-994E-C923AC6FB04F}.CreateInstaller|x86.Build.0 = Release|x86
{F54583EA-781F-46AA-994E-C923AC6FB04F}.CreateInstallerWithDemoProject|x86.ActiveCfg = Release|x86
{F54583EA-781F-46AA-994E-C923AC6FB04F}.Debug|x86.ActiveCfg = Debug|x86
{F54583EA-781F-46AA-994E-C923AC6FB04F}.Debug|x86.Build.0 = Debug|x86
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj
===================================================================
diff -u -rd2b9feaf8aceaa9a96d0e6e19fd6fbbee8987ca6 -r37f9e2aae011fa8e80cf2e8f9de409cd6a25574a
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj (.../Ringtoets.Integration.Forms.csproj) (revision d2b9feaf8aceaa9a96d0e6e19fd6fbbee8987ca6)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj (.../Ringtoets.Integration.Forms.csproj) (revision 37f9e2aae011fa8e80cf2e8f9de409cd6a25574a)
@@ -36,14 +36,6 @@
..\..\..\..\packages\log4net.2.0.4\lib\net40-full\log4net.dll
True
-
- ..\..\..\..\packages\NUnit.2.6.4\lib\nunit.framework.dll
- True
-
-
- ..\..\..\..\packages\RhinoMocks.3.6.1\lib\net\Rhino.Mocks.dll
- True
-
@@ -86,7 +78,6 @@
ReferenceLineMetaSelectionDialog.cs
-
UserControl
@@ -177,11 +168,6 @@
Core.Common.Base
False
-
- {1D27F91F-4E62-4EAF-A0A8-A32708B9A9B1}
- Core.Common.Controls.TreeView
- False
-
{9a2d67e6-26ac-4d17-b11a-2b4372f2f572}
Core.Common.Controls
@@ -202,11 +188,6 @@
Core.Common.Utils
False
-
- {D749EE4C-CE50-4C17-BF01-9A953028C126}
- Core.Common.TestUtil
- False
-
{5A91174A-FB95-4C9D-9CA5-81C0B8D4361A}
Core.Components.DotSpatial.Forms
@@ -247,11 +228,6 @@
Ringtoets.GrassCoverErosionInwards.Data
False
-
- {20955E2A-8CEB-46B0-ADC4-A97D4C6BBDF5}
- Ringtoets.GrassCoverErosionInwards.Plugin
- False
-
{1C0017D8-35B5-4CA0-8FC7-A83F46DBDC99}
Ringtoets.HeightStructures.Data
Fisheye: Tag 37f9e2aae011fa8e80cf2e8f9de409cd6a25574a refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.Forms/TreeNodeInfos/DikeProfileTreeNodeInfoTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyInfos/DikeProfileTreeNodeInfoTest.cs
===================================================================
diff -u
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyInfos/DikeProfileTreeNodeInfoTest.cs (revision 0)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyInfos/DikeProfileTreeNodeInfoTest.cs (revision 37f9e2aae011fa8e80cf2e8f9de409cd6a25574a)
@@ -0,0 +1,133 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Drawing;
+using System.Linq;
+using Core.Common.Base.Geometry;
+using Core.Common.Controls.TreeView;
+using Core.Common.Gui;
+using Core.Common.Gui.ContextMenu;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+using Rhino.Mocks;
+using Ringtoets.Common.Data.DikeProfiles;
+using Ringtoets.GrassCoverErosionInwards.Plugin;
+using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources;
+
+namespace Ringtoets.Integration.Forms.Test.PropertyInfos
+{
+ [TestFixture]
+ public class DikeProfileTreeNodeInfoTest
+ {
+ private GrassCoverErosionInwardsPlugin plugin;
+ private TreeNodeInfo info;
+
+ [SetUp]
+ public void SetUp()
+ {
+ plugin = new GrassCoverErosionInwardsPlugin();
+ info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(DikeProfile));
+ }
+
+ [TearDown]
+ public void TearDown()
+ {
+ plugin.Dispose();
+ }
+
+ [Test]
+ public void Initialized_Always_ExpectedPropertiesSet()
+ {
+ // Assert
+ Assert.AreEqual(typeof(DikeProfile), info.TagType);
+ Assert.IsNotNull(info.Text);
+ Assert.IsNotNull(info.Image);
+ Assert.IsNotNull(info.ContextMenuStrip);
+ Assert.IsNull(info.ForeColor);
+ Assert.IsNull(info.ChildNodeObjects);
+ Assert.IsNull(info.EnsureVisibleOnCreate);
+ Assert.IsNull(info.CanRename);
+ Assert.IsNull(info.OnNodeRenamed);
+ Assert.IsNull(info.CanRemove);
+ Assert.IsNull(info.OnNodeRemoved);
+ Assert.IsNull(info.CanCheck);
+ Assert.IsNull(info.IsChecked);
+ Assert.IsNull(info.OnNodeChecked);
+ Assert.IsNull(info.CanDrag);
+ Assert.IsNull(info.CanDrop);
+ Assert.IsNull(info.CanInsert);
+ Assert.IsNull(info.OnDrop);
+ }
+
+ [Test]
+ public void Text_Always_ReturnDikeProfileName()
+ {
+ // Setup
+ const string profileName = "Random profile name";
+ var dikeProfile = new DikeProfile(new Point2D(0, 0), new RoughnessPoint[0], new Point2D[0],
+ null, new DikeProfile.ConstructionProperties
+ {
+ Name = profileName
+ });
+
+ // Call
+ string text = info.Text(dikeProfile);
+
+ // Assert
+ Assert.AreEqual(profileName, text);
+ }
+
+ [Test]
+ public void Image_Always_ReturnExpectedImage()
+ {
+ // Call
+ Image image = info.Image(null);
+
+ // Assert
+ TestHelper.AssertImagesAreEqual(RingtoetsCommonFormsResources.DikeProfile, image);
+ }
+
+ [Test]
+ public void ContextMenuStrip_Always_CallsBuilder()
+ {
+ // Setup
+ var mocks = new MockRepository();
+ var menuBuilderMock = mocks.StrictMock();
+ menuBuilderMock.Expect(mb => mb.AddPropertiesItem()).Return(menuBuilderMock);
+ menuBuilderMock.Expect(mb => mb.Build()).Return(null);
+
+ using (var treeViewControl = new TreeViewControl())
+ {
+ var gui = mocks.Stub();
+ gui.Stub(g => g.Get(null, treeViewControl)).Return(menuBuilderMock);
+
+ mocks.ReplayAll();
+
+ plugin.Gui = gui;
+
+ // Call
+ info.ContextMenuStrip(null, null, treeViewControl);
+ }
+ // Assert
+ mocks.VerifyAll();
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Ringtoets.Integration.Forms.Test.csproj
===================================================================
diff -u -rfe0ccc4dc7ed40356bd77aae1531d073af8d8f85 -r37f9e2aae011fa8e80cf2e8f9de409cd6a25574a
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Ringtoets.Integration.Forms.Test.csproj (.../Ringtoets.Integration.Forms.Test.csproj) (revision fe0ccc4dc7ed40356bd77aae1531d073af8d8f85)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Ringtoets.Integration.Forms.Test.csproj (.../Ringtoets.Integration.Forms.Test.csproj) (revision 37f9e2aae011fa8e80cf2e8f9de409cd6a25574a)
@@ -87,6 +87,7 @@
+
@@ -194,6 +195,10 @@
{73E7E100-C015-4874-A548-AD6E33E7955E}
Ringtoets.Common.Service.TestUtil
+
+ {20955E2A-8CEB-46B0-ADC4-A97D4C6BBDF5}
+ Ringtoets.GrassCoverErosionInwards.Plugin
+
{74CBA865-9338-447F-BAD9-28312446AE84}
Ringtoets.HydraRing.Calculation.TestUtil