Index: Ringtoets/Asphalt/test/Ringtoets.Asphalt.Plugin.Test/WaveImpactAsphaltCoverPluginTest.cs =================================================================== diff -u -rff8a088931e6af2e46f6f4f09b633bcdd0b84ecd -r3e5a3e2990566fe86caaaa87136d0f57543a9666 --- Ringtoets/Asphalt/test/Ringtoets.Asphalt.Plugin.Test/WaveImpactAsphaltCoverPluginTest.cs (.../WaveImpactAsphaltCoverPluginTest.cs) (revision ff8a088931e6af2e46f6f4f09b633bcdd0b84ecd) +++ Ringtoets/Asphalt/test/Ringtoets.Asphalt.Plugin.Test/WaveImpactAsphaltCoverPluginTest.cs (.../WaveImpactAsphaltCoverPluginTest.cs) (revision 3e5a3e2990566fe86caaaa87136d0f57543a9666) @@ -22,15 +22,20 @@ using System.Collections.Generic; using System.Linq; using Core.Common.Controls.TreeView; +using Core.Common.Gui; +using Core.Common.Gui.Commands; using Core.Common.Gui.Plugin; using Core.Common.Gui.TestUtil; using Core.Common.TestUtil; using NUnit.Framework; +using Rhino.Mocks; using Ringtoets.Asphalt.Data; using Ringtoets.Asphalt.Forms.PresentationObjects; using Ringtoets.Asphalt.Forms.PropertyClasses; using Ringtoets.Asphalt.Forms.Views; +using Ringtoets.Common.Data.DikeProfiles; using Ringtoets.Common.Forms.PresentationObjects; +using Ringtoets.Common.Forms.PropertyClasses; using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; namespace Ringtoets.Asphalt.Plugin.Test @@ -50,7 +55,7 @@ } [Test] - public void GetPropertiesInfos_ReturnSupportedPropertyInfos() + public void GetPropertiesInfos_ReturnsSupportedPropertyClasses() { // Setup using (var plugin = new WaveImpactAsphaltCoverPlugin()) @@ -61,9 +66,11 @@ // Assert Assert.AreEqual(1, propertyInfos.Length); - PluginTestHelper.AssertPropertyInfoDefined< - WaveImpactAsphaltCoverFailureMechanismContext, - WaveImpactAsphaltCoverFailureMechanismContextProperties>(propertyInfos); + PropertyInfo failureMechanismContextProperties = PluginTestHelper.AssertPropertyInfoDefined + (propertyInfos); + Assert.IsNull(failureMechanismContextProperties.AdditionalDataCheck); + Assert.IsNull(failureMechanismContextProperties.GetObjectPropertiesData); + Assert.IsNull(failureMechanismContextProperties.AfterCreate); } } @@ -101,5 +108,20 @@ Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(FailureMechanismSectionResultContext))); } } + + [Test] + public void GetImportInfos_Always_ReturnsExpectedImportInfos() + { + // Setup + using (var plugin = new WaveImpactAsphaltCoverPlugin()) + { + // Call + ImportInfo[] importInfos = plugin.GetImportInfos().ToArray(); + + // Assert + Assert.AreEqual(1, importInfos.Length); + Assert.AreEqual(typeof(ForeshoreProfilesContext), importInfos[0].DataType); + } + } } } \ No newline at end of file