Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/HeightStructuresGuiPluginTest.cs =================================================================== diff -u -ra61d9a646a09ddee65775c179bba12c40003cf84 -rf5ac9de8b45cef4515fa7a051c5af54446f96712 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/HeightStructuresGuiPluginTest.cs (.../HeightStructuresGuiPluginTest.cs) (revision a61d9a646a09ddee65775c179bba12c40003cf84) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/HeightStructuresGuiPluginTest.cs (.../HeightStructuresGuiPluginTest.cs) (revision f5ac9de8b45cef4515fa7a051c5af54446f96712) @@ -31,6 +31,7 @@ using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.HeightStructures.Data; using Ringtoets.HeightStructures.Forms.PresentationObjects; +using Ringtoets.HeightStructures.Forms.PropertyClasses; using Ringtoets.HeightStructures.Forms.Views; namespace Ringtoets.HeightStructures.Plugin.Test @@ -50,6 +51,30 @@ } [Test] + public void GetPropertyInfos_ReturnsSupportedPropertyClasses() + { + // setup + using (var guiPlugin = new HeightStructuresGuiPlugin()) + { + // call + var mocks = new MockRepository(); + mocks.ReplayAll(); + + PropertyInfo[] propertyInfos = guiPlugin.GetPropertyInfos().ToArray(); + + // assert + Assert.AreEqual(1, propertyInfos.Length); + var failureMechanismContextProperties = propertyInfos.Single(pi => pi.DataType == typeof(HeightStructuresFailureMechanismContext)); + Assert.AreEqual(typeof(HeightStructuresFailureMechanismContextProperties), failureMechanismContextProperties.PropertyObjectType); + Assert.IsNull(failureMechanismContextProperties.AdditionalDataCheck); + Assert.IsNull(failureMechanismContextProperties.GetObjectPropertiesData); + Assert.IsNull(failureMechanismContextProperties.AfterCreate); + + mocks.VerifyAll(); + } + } + + [Test] public void GetTreeNodeInfos_ReturnsSupportedTreeNodeInfos() { // Setup