Fisheye: Tag a9c46e570acb026a66927e6c9e92cfb564e9691e refers to a dead (removed) revision in file `Riskeer/Common/src/Riskeer.Common.Forms/PropertyClasses/DesignWaterLevelCalculationsGroupProperties.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag a9c46e570acb026a66927e6c9e92cfb564e9691e refers to a dead (removed) revision in file `Riskeer/Common/src/Riskeer.Common.Forms/PropertyClasses/WaveHeightCalculationsGroupProperties.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag a9c46e570acb026a66927e6c9e92cfb564e9691e refers to a dead (removed) revision in file `Riskeer/Common/test/Riskeer.Common.Forms.Test/PropertyClasses/DesignWaterLevelCalculationsGroupPropertiesTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag a9c46e570acb026a66927e6c9e92cfb564e9691e refers to a dead (removed) revision in file `Riskeer/Common/test/Riskeer.Common.Forms.Test/PropertyClasses/WaveHeightCalculationsGroupPropertiesTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/GrassCoverErosionOutwardsPluginTest.cs =================================================================== diff -u -r69e52fada8dd520bce8d07411cda2eb8ec3d2268 -ra9c46e570acb026a66927e6c9e92cfb564e9691e --- Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/GrassCoverErosionOutwardsPluginTest.cs (.../GrassCoverErosionOutwardsPluginTest.cs) (revision 69e52fada8dd520bce8d07411cda2eb8ec3d2268) +++ Riskeer/GrassCoverErosionOutwards/test/Riskeer.GrassCoverErosionOutwards.Plugin.Test/GrassCoverErosionOutwardsPluginTest.cs (.../GrassCoverErosionOutwardsPluginTest.cs) (revision a9c46e570acb026a66927e6c9e92cfb564e9691e) @@ -19,7 +19,6 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using System; using System.Linq; using Core.Common.Base; using Core.Common.Controls.TreeView; @@ -30,10 +29,7 @@ using NUnit.Framework; using Rhino.Mocks; using Riskeer.Common.Data.Calculation; -using Riskeer.Common.Data.Hydraulics; using Riskeer.Common.Forms.PresentationObjects; -using Riskeer.Common.Forms.PropertyClasses; -using Riskeer.Common.Forms.Views; using Riskeer.GrassCoverErosionOutwards.Data; using Riskeer.GrassCoverErosionOutwards.Forms.PresentationObjects; using Riskeer.GrassCoverErosionOutwards.Forms.PropertyClasses; @@ -67,7 +63,7 @@ ViewInfo[] viewInfos = plugin.GetViewInfos().ToArray(); // Assert - Assert.AreEqual(6, viewInfos.Length); + Assert.AreEqual(4, viewInfos.Length); PluginTestHelper.AssertViewInfoDefined( viewInfos, @@ -87,18 +83,6 @@ PluginTestHelper.AssertViewInfoDefined( viewInfos, - typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext), - typeof(IObservableEnumerable), - typeof(DesignWaterLevelCalculationsView)); - - PluginTestHelper.AssertViewInfoDefined( - viewInfos, - typeof(GrassCoverErosionOutwardsWaveHeightCalculationsContext), - typeof(IObservableEnumerable), - typeof(WaveHeightCalculationsView)); - - PluginTestHelper.AssertViewInfoDefined( - viewInfos, typeof(GrassCoverErosionOutwardsWaveConditionsInputContext), typeof(ICalculation), typeof(WaveConditionsInputView)); @@ -138,7 +122,7 @@ PropertyInfo[] propertyInfos = plugin.GetPropertyInfos().ToArray(); // Assert - Assert.AreEqual(8, propertyInfos.Length); + Assert.AreEqual(4, propertyInfos.Length); PluginTestHelper.AssertPropertyInfoDefined( propertyInfos, @@ -152,33 +136,13 @@ PluginTestHelper.AssertPropertyInfoDefined( propertyInfos, - typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsContext), - typeof(DesignWaterLevelCalculationsProperties)); - - PluginTestHelper.AssertPropertyInfoDefined( - propertyInfos, - typeof(GrassCoverErosionOutwardsWaveHeightCalculationsContext), - typeof(WaveHeightCalculationsProperties)); - - PluginTestHelper.AssertPropertyInfoDefined( - propertyInfos, typeof(GrassCoverErosionOutwardsWaveConditionsOutputContext), typeof(GrassCoverErosionOutwardsWaveConditionsOutputProperties)); PluginTestHelper.AssertPropertyInfoDefined( propertyInfos, typeof(GrassCoverErosionOutwardsWaveConditionsInputContext), typeof(GrassCoverErosionOutwardsWaveConditionsInputContextProperties)); - - PluginTestHelper.AssertPropertyInfoDefined( - propertyInfos, - typeof(GrassCoverErosionOutwardsDesignWaterLevelCalculationsGroupContext), - typeof(DesignWaterLevelCalculationsGroupProperties)); - - PluginTestHelper.AssertPropertyInfoDefined( - propertyInfos, - typeof(GrassCoverErosionOutwardsWaveHeightCalculationsGroupContext), - typeof(WaveHeightCalculationsGroupProperties)); } } @@ -224,20 +188,5 @@ Assert.IsTrue(importInfos.Any(i => i.DataType == typeof(GrassCoverErosionOutwardsWaveConditionsCalculationGroupContext))); } } - - [Test] - public void Activate_GuiNull_ThrowInvalidOperationException() - { - // Setup - using (var plugin = new GrassCoverErosionOutwardsPlugin()) - { - // Call - TestDelegate test = () => plugin.Activate(); - - // Assert - var exception = Assert.Throws(test); - Assert.AreEqual("Gui cannot be null", exception.Message); - } - } } } \ No newline at end of file