Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismResultView.cs =================================================================== diff -u -rea99af5c043eadf5c2ba83b82a847ae009181191 -re24eab2c6007074685556ec97dbe45940a520687 --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismResultView.cs (.../GrassCoverErosionInwardsFailureMechanismResultView.cs) (revision ea99af5c043eadf5c2ba83b82a847ae009181191) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismResultView.cs (.../GrassCoverErosionInwardsFailureMechanismResultView.cs) (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -35,7 +35,7 @@ namespace Ringtoets.GrassCoverErosionInwards.Forms.Views { /// - /// The view for the . + /// The view for the . /// public partial class GrassCoverErosionInwardsFailureMechanismResultView : UserControl, IView { @@ -53,7 +53,7 @@ private DataGridViewTextBoxColumn assessmentLayerThree; /// - /// Creates a new instance of . + /// Creates a new instance of . /// public GrassCoverErosionInwardsFailureMechanismResultView() { Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/HeightStructuresFailureMechanism.cs =================================================================== diff -u -r4936ea40e490dd8a3ed500e1c5a8f8390ff31491 -re24eab2c6007074685556ec97dbe45940a520687 --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/HeightStructuresFailureMechanism.cs (.../HeightStructuresFailureMechanism.cs) (revision 4936ea40e490dd8a3ed500e1c5a8f8390ff31491) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/HeightStructuresFailureMechanism.cs (.../HeightStructuresFailureMechanism.cs) (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -32,17 +32,17 @@ /// /// Failure mechanism for Height structures. /// - public class HeightStructuresFailureMechanism : FailureMechanismBase, IHasSectionResults + public class HeightStructuresFailureMechanism : FailureMechanismBase, ICalculatableFailureMechanism, IHasSectionResults { - private readonly IList sectionResults; + private readonly IList sectionResults; /// /// Creates a new instance of the class. /// public HeightStructuresFailureMechanism() : base(Resources.HeightStructuresFailureMechanism_DisplayName, Resources.HeightStructuresFailureMechanism_Code) { - sectionResults = new List(); + sectionResults = new List(); CalculationsGroup = new CalculationGroup(RingtoetsCommonDataResources.FailureMechanism_Calculations_DisplayName, false); NormProbabilityInput = new NormProbabilityInput(); } @@ -55,31 +55,32 @@ } } + /// + /// Gets the length-effect parameters. + /// + public NormProbabilityInput NormProbabilityInput { get; private set; } + + public CalculationGroup CalculationsGroup { get; private set; } + + public IEnumerable SectionResults + { + get + { + return sectionResults; + } + } + public override void AddSection(FailureMechanismSection section) { base.AddSection(section); - sectionResults.Add(new CustomFailureMechanismSectionResult(section)); + sectionResults.Add(new HeightStructuresFailureMechanismSectionResult(section)); } public override void ClearAllSections() { base.ClearAllSections(); sectionResults.Clear(); } - - public IEnumerable SectionResults - { - get - { - return sectionResults; - } - } - /// - /// Gets the length-effect parameters. - /// - public NormProbabilityInput NormProbabilityInput { get; private set; } - - public CalculationGroup CalculationsGroup { get; private set; } } } \ No newline at end of file Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/HeightStructuresFailureMechanismSectionResult.cs =================================================================== diff -u --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/HeightStructuresFailureMechanismSectionResult.cs (revision 0) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/HeightStructuresFailureMechanismSectionResult.cs (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -0,0 +1,56 @@ +// 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; +using Core.Common.Base.Data; +using Ringtoets.Common.Data.FailureMechanism; + +namespace Ringtoets.HeightStructures.Data +{ + /// + /// This class holds the information of the result of the + /// for a height structures assessment. + /// + public class HeightStructuresFailureMechanismSectionResult : FailureMechanismSectionResult + { + /// + /// Creates a new instance of . + /// + /// The to get the result from. + /// Thrown when is null. + public HeightStructuresFailureMechanismSectionResult(FailureMechanismSection section) : base(section) {} + + /// + /// Gets the value of assessment layer two a. + /// + public RoundedDouble AssessmentLayerTwoA { get; set; } + + /// + /// Gets or sets the value of assessment layer two b. + /// + public RoundedDouble AssessmentLayerTwoB { get; set; } + + /// + /// Gets or sets the value of assessment layer three. + /// + public RoundedDouble AssessmentLayerThree { get; set; } + } +} Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/Ringtoets.HeightStructures.Data.csproj =================================================================== diff -u -r7cebb168afee29822b64f213045a21520b38ade0 -re24eab2c6007074685556ec97dbe45940a520687 --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/Ringtoets.HeightStructures.Data.csproj (.../Ringtoets.HeightStructures.Data.csproj) (revision 7cebb168afee29822b64f213045a21520b38ade0) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/Ringtoets.HeightStructures.Data.csproj (.../Ringtoets.HeightStructures.Data.csproj) (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -41,6 +41,7 @@ + Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresGuiPlugin.cs =================================================================== diff -u -r80dce3e20a58c31ec56ee8ee734a1127b9a0cb28 -re24eab2c6007074685556ec97dbe45940a520687 --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresGuiPlugin.cs (.../HeightStructuresGuiPlugin.cs) (revision 80dce3e20a58c31ec56ee8ee734a1127b9a0cb28) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresGuiPlugin.cs (.../HeightStructuresGuiPlugin.cs) (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -28,13 +28,13 @@ using Ringtoets.Common.Data; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.Calculation; -using Ringtoets.Common.Data.FailureMechanism; using Ringtoets.Common.Forms.Helpers; using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.Common.Forms.TreeNodeInfos; using Ringtoets.HeightStructures.Data; using Ringtoets.HeightStructures.Forms.PresentationObjects; using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; +using RingtoetsCommonDataResources = Ringtoets.Common.Data.Properties.Resources; using HeightStructuresDataResources = Ringtoets.HeightStructures.Data.Properties.Resources; using HeightStructuresFormsResources = Ringtoets.HeightStructures.Forms.Properties.Resources; @@ -98,6 +98,15 @@ .AddPropertiesItem() .Build() }; + + yield return new TreeNodeInfo> + { + Text = context => RingtoetsCommonDataResources.FailureMechanism_AssessmentResult_DisplayName, + Image = context => RingtoetsCommonFormsResources.FailureMechanismSectionResultIcon, + ContextMenuStrip = (nodeData, parentData, treeViewControl) => Gui.Get(nodeData, treeViewControl) + .AddOpenItem() + .Build() + }; } #region HeightStructuresFailureMechanismContext TreeNodeInfo @@ -126,7 +135,7 @@ { return new ArrayList { - new FailureMechanismSectionResultContext(failureMechanism.SectionResults, failureMechanism) + new FailureMechanismSectionResultContext(failureMechanism.SectionResults, failureMechanism) }; } Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresFailureMechanismSectionResultTest.cs =================================================================== diff -u --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresFailureMechanismSectionResultTest.cs (revision 0) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresFailureMechanismSectionResultTest.cs (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -0,0 +1,138 @@ +// 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; +using Core.Common.Base.Data; +using Core.Common.Base.Geometry; +using NUnit.Framework; +using Ringtoets.Common.Data.FailureMechanism; + +namespace Ringtoets.HeightStructures.Data.Test +{ + [TestFixture] + public class HeightStructuresFailureMechanismSectionResultTest + { + [Test] + public void Constructor_DefaultValues() + { + // Setup + FailureMechanismSection section = CreateSection(); + + // Call + HeightStructuresFailureMechanismSectionResult sectionResult = new HeightStructuresFailureMechanismSectionResult(section); + + // Assert + Assert.IsInstanceOf(sectionResult); + Assert.AreSame(section, sectionResult.Section); + Assert.IsFalse(sectionResult.AssessmentLayerOne); + } + + [Test] + public void Constructor_SectionNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => new HeightStructuresFailureMechanismSectionResult(null); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("section", exception.ParamName); + } + + [Test] + [TestCase(true)] + [TestCase(false)] + public void AssessmentLayerOne_Always_ReturnsSetValue(bool newValue) + { + // Setup + FailureMechanismSection section = CreateSection(); + var failureMechanismSectionResult = new HeightStructuresFailureMechanismSectionResult(section); + + // Call + failureMechanismSectionResult.AssessmentLayerOne = newValue; + + // Assert + Assert.AreEqual(newValue, failureMechanismSectionResult.AssessmentLayerOne); + } + + [Test] + [TestCase(2.3)] + [TestCase(24.6)] + public void AssessmentLayerTwoA_Always_ReturnsSetValue(double newValue) + { + // Setup + FailureMechanismSection section = CreateSection(); + var failureMechanismSectionResult = new HeightStructuresFailureMechanismSectionResult(section); + + RoundedDouble assessmentLayerTwoA = (RoundedDouble)newValue; + + // Call + failureMechanismSectionResult.AssessmentLayerTwoA = assessmentLayerTwoA; + + // Assert + Assert.AreEqual(assessmentLayerTwoA, failureMechanismSectionResult.AssessmentLayerTwoA); + } + + [Test] + [TestCase(2.3)] + [TestCase(24.6)] + public void AssessmentLayerTwoB_Always_ReturnsSetValue(double newValue) + { + // Setup + FailureMechanismSection section = CreateSection(); + var failureMechanismSectionResult = new HeightStructuresFailureMechanismSectionResult(section); + + RoundedDouble assessmentLayerTwoB = (RoundedDouble)newValue; + + // Call + failureMechanismSectionResult.AssessmentLayerTwoB = assessmentLayerTwoB; + + // Assert + Assert.AreEqual(assessmentLayerTwoB, failureMechanismSectionResult.AssessmentLayerTwoB); + } + + [Test] + [TestCase(2.3)] + [TestCase(24.6)] + public void AssessmentLayerThree_Always_ReturnsSetValue(double newValue) + { + // Setup + FailureMechanismSection section = CreateSection(); + var failureMechanismSectionResult = new HeightStructuresFailureMechanismSectionResult(section); + + RoundedDouble assessmentLayerThree = (RoundedDouble)newValue; + + // Call + failureMechanismSectionResult.AssessmentLayerThree = assessmentLayerThree; + + // Assert + Assert.AreEqual(assessmentLayerThree, failureMechanismSectionResult.AssessmentLayerThree); + } + + private static FailureMechanismSection CreateSection() + { + return new FailureMechanismSection("test", new[] + { + new Point2D(1, 2), + new Point2D(3, 4) + }); + } + } +} \ No newline at end of file Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresFailureMechanismTest.cs =================================================================== diff -u -r4936ea40e490dd8a3ed500e1c5a8f8390ff31491 -re24eab2c6007074685556ec97dbe45940a520687 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresFailureMechanismTest.cs (.../HeightStructuresFailureMechanismTest.cs) (revision 4936ea40e490dd8a3ed500e1c5a8f8390ff31491) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresFailureMechanismTest.cs (.../HeightStructuresFailureMechanismTest.cs) (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -63,7 +63,7 @@ // Assert Assert.AreEqual(1, failureMechanism.SectionResults.Count()); - Assert.IsInstanceOf(failureMechanism.SectionResults.ElementAt(0)); + Assert.IsInstanceOf(failureMechanism.SectionResults.ElementAt(0)); } [Test] Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/Ringtoets.HeightStructures.Data.Test.csproj =================================================================== diff -u -r47d80506f9f8166de93579dbba94e57f4101927b -re24eab2c6007074685556ec97dbe45940a520687 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/Ringtoets.HeightStructures.Data.Test.csproj (.../Ringtoets.HeightStructures.Data.Test.csproj) (revision 47d80506f9f8166de93579dbba94e57f4101927b) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/Ringtoets.HeightStructures.Data.Test.csproj (.../Ringtoets.HeightStructures.Data.Test.csproj) (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -50,6 +50,7 @@ + Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Ringtoets.HeightStructures.Forms.Test.csproj =================================================================== diff -u -r80dce3e20a58c31ec56ee8ee734a1127b9a0cb28 -re24eab2c6007074685556ec97dbe45940a520687 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Ringtoets.HeightStructures.Forms.Test.csproj (.../Ringtoets.HeightStructures.Forms.Test.csproj) (revision 80dce3e20a58c31ec56ee8ee734a1127b9a0cb28) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Ringtoets.HeightStructures.Forms.Test.csproj (.../Ringtoets.HeightStructures.Forms.Test.csproj) (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -57,6 +57,7 @@ + Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/FailureMechanismResultViewTreeNodeInfoTest.cs =================================================================== diff -u --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/FailureMechanismResultViewTreeNodeInfoTest.cs (revision 0) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/FailureMechanismResultViewTreeNodeInfoTest.cs (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -0,0 +1,122 @@ +// 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.Linq; +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.Forms.PresentationObjects; +using Ringtoets.HeightStructures.Data; +using Ringtoets.HeightStructures.Plugin; + +using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; +using RingtoetsCommonDataResources = Ringtoets.Common.Data.Properties.Resources; + +namespace Ringtoets.HeightStructures.Forms.Test.TreeNodeInfos +{ + [TestFixture] + public class FailureMechanismResultViewTreeNodeInfoTest + { + private MockRepository mocks; + private HeightStructuresGuiPlugin plugin; + private TreeNodeInfo info; + + [SetUp] + public void SetUp() + { + mocks = new MockRepository(); + plugin = new HeightStructuresGuiPlugin(); + info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(FailureMechanismSectionResultContext)); + } + + [Test] + public void Initialized_Always_ExpectedPropertiesSet() + { + // Assert + Assert.AreEqual(typeof(FailureMechanismSectionResultContext), info.TagType); + Assert.IsNotNull(info.Text); + Assert.IsNotNull(info.Image); + Assert.IsNotNull(info.ContextMenuStrip); + Assert.IsNull(info.ChildNodeObjects); + Assert.IsNull(info.ForeColor); + 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_ReturnsFailureMechanismSectionResultDisplayName() + { + // Call + var text = info.Text(null); + + // Assert + Assert.AreEqual(RingtoetsCommonDataResources.FailureMechanism_AssessmentResult_DisplayName, text); + } + + [Test] + public void Image_Always_ReturnsFailureMechanismSectionResultIcon() + { + // Call + var image = info.Image(null); + + // Assert + TestHelper.AssertImagesAreEqual(RingtoetsCommonFormsResources.FailureMechanismSectionResultIcon, image); + } + + [Test] + public void ContextMenuStrip_Always_CallsContextMenuBuilderMethods() + { + // Setup + var guiMock = mocks.StrictMock(); + var treeViewControlMock = mocks.StrictMock(); + var failureMechanism = new HeightStructuresFailureMechanism(); + var nodeData = new FailureMechanismSectionResultContext(Enumerable.Empty(), failureMechanism); + var menuBuilderMock = mocks.StrictMock(); + + menuBuilderMock.Expect(mb => mb.AddOpenItem()).Return(menuBuilderMock); + menuBuilderMock.Expect(mb => mb.Build()).Return(null); + guiMock.Expect(cmp => cmp.Get(nodeData, treeViewControlMock)).Return(menuBuilderMock); + + mocks.ReplayAll(); + + plugin.Gui = guiMock; + + // Call + info.ContextMenuStrip(nodeData, null, treeViewControlMock); + + // Assert + mocks.VerifyAll(); // Expect no calls on arguments + } + } +} \ No newline at end of file Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -r1c8a44983627b9d580cbbeab3c8444c5ecc41524 -re24eab2c6007074685556ec97dbe45940a520687 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision 1c8a44983627b9d580cbbeab3c8444c5ecc41524) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../HeightStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -113,7 +113,7 @@ var outputsFolder = (CategoryTreeFolder) children[2]; Assert.AreEqual("Uitvoer", outputsFolder.Name); Assert.AreEqual(TreeFolderCategory.Output, outputsFolder.Category); - var failureMechanismResultsContext = (FailureMechanismSectionResultContext) outputsFolder.Contents[0]; + var failureMechanismResultsContext = (FailureMechanismSectionResultContext) outputsFolder.Contents[0]; Assert.AreSame(failureMechanism, failureMechanismResultsContext.FailureMechanism); Assert.AreSame(failureMechanism.SectionResults, failureMechanismResultsContext.SectionResults); Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/HeightStructuresGuiPluginTest.cs =================================================================== diff -u -r80dce3e20a58c31ec56ee8ee734a1127b9a0cb28 -re24eab2c6007074685556ec97dbe45940a520687 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/HeightStructuresGuiPluginTest.cs (.../HeightStructuresGuiPluginTest.cs) (revision 80dce3e20a58c31ec56ee8ee734a1127b9a0cb28) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/HeightStructuresGuiPluginTest.cs (.../HeightStructuresGuiPluginTest.cs) (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -27,6 +27,8 @@ using Core.Common.Gui.Plugin; using NUnit.Framework; using Rhino.Mocks; +using Ringtoets.Common.Forms.PresentationObjects; +using Ringtoets.Common.Forms.Views; using Ringtoets.HeightStructures.Data; using Ringtoets.HeightStructures.Forms.PresentationObjects; @@ -68,13 +70,14 @@ TreeNodeInfo[] treeNodeInfos = guiPlugin.GetTreeNodeInfos().ToArray(); // Assert - Assert.AreEqual(6, treeNodeInfos.Length); + Assert.AreEqual(7, treeNodeInfos.Length); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(HeightStructuresFailureMechanismContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(HeightStructuresCalculationGroupContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(HeightStructuresCalculationContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(HeightStructuresInputContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(HeightStructuresOutput))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(EmptyHeightStructuresOutput))); + Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(FailureMechanismSectionResultContext))); } mocks.VerifyAll(); Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/Ringtoets.HeightStructures.Plugin.Test.csproj =================================================================== diff -u -ra2293026e111698c108d23f2f1fc7a09764a1bb6 -re24eab2c6007074685556ec97dbe45940a520687 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/Ringtoets.HeightStructures.Plugin.Test.csproj (.../Ringtoets.HeightStructures.Plugin.Test.csproj) (revision a2293026e111698c108d23f2f1fc7a09764a1bb6) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/Ringtoets.HeightStructures.Plugin.Test.csproj (.../Ringtoets.HeightStructures.Plugin.Test.csproj) (revision e24eab2c6007074685556ec97dbe45940a520687) @@ -47,6 +47,7 @@ +