Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsPluginTest.cs =================================================================== diff -u -r915001caffacbbee15c0e3bf449072245bc5f509 -r3e5a3e2990566fe86caaaa87136d0f57543a9666 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsPluginTest.cs (.../RingtoetsPluginTest.cs) (revision 915001caffacbbee15c0e3bf449072245bc5f509) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsPluginTest.cs (.../RingtoetsPluginTest.cs) (revision 3e5a3e2990566fe86caaaa87136d0f57543a9666) @@ -41,6 +41,7 @@ using Ringtoets.Common.Data; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.Calculation; +using Ringtoets.Common.Data.DikeProfiles; using Ringtoets.Common.Data.FailureMechanism; using Ringtoets.Common.Data.Probability; using Ringtoets.Common.Forms.PresentationObjects; @@ -198,7 +199,7 @@ PropertyInfo[] propertyInfos = plugin.GetPropertyInfos().ToArray(); // Assert - Assert.AreEqual(11, propertyInfos.Length); + Assert.AreEqual(12, propertyInfos.Length); PropertyInfo ringtoetsProjectProperties = PluginTestHelper.AssertPropertyInfoDefined (propertyInfos); @@ -265,6 +266,12 @@ Assert.IsNull(waveHeightLocationContextProperties.AdditionalDataCheck); Assert.IsNull(waveHeightLocationContextProperties.GetObjectPropertiesData); Assert.IsNull(waveHeightLocationContextProperties.AfterCreate); + + PropertyInfo forshoreProfileProperties = PluginTestHelper.AssertPropertyInfoDefined + (propertyInfos); + Assert.IsNull(forshoreProfileProperties.AdditionalDataCheck); + Assert.IsNull(forshoreProfileProperties.GetObjectPropertiesData); + Assert.IsNull(forshoreProfileProperties.AfterCreate); } } @@ -388,20 +395,13 @@ public void GetTreeNodeInfos_ReturnsSupportedTreeNodeInfos() { // Setup - var mocks = new MockRepository(); - var guiStub = mocks.DynamicMultiMock(typeof(IGui), typeof(IContextMenuBuilderProvider)); - mocks.ReplayAll(); - - using (var plugin = new RingtoetsPlugin + using (var plugin = new RingtoetsPlugin()) { - Gui = guiStub - }) - { // Call TreeNodeInfo[] treeNodeInfos = plugin.GetTreeNodeInfos().ToArray(); // Assert - Assert.AreEqual(25, treeNodeInfos.Length); + Assert.AreEqual(26, treeNodeInfos.Length); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(AssessmentSection))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(ReferenceLineContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(FailureMechanismContext))); @@ -412,6 +412,7 @@ Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(DesignWaterLevelLocationsContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(WaveHeightLocationsContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(ForeshoreProfilesContext))); + Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(ForeshoreProfile))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(FailureMechanismSectionResultContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(FailureMechanismSectionResultContext))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(FailureMechanismSectionResultContext))); @@ -428,7 +429,6 @@ Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(ProbabilityAssessmentOutput))); Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(RingtoetsProject))); } - mocks.VerifyAll(); } [Test]