Index: Ringtoets/Common/test/Ringtoets.Common.Plugin.Test/RingtoetsPluginHelperTest.cs =================================================================== diff -u -r37245bc18c974f3f961453ada3979f25976f17a0 -r88a027f5282f504c25327525a3bf2e2e4950b09f --- Ringtoets/Common/test/Ringtoets.Common.Plugin.Test/RingtoetsPluginHelperTest.cs (.../RingtoetsPluginHelperTest.cs) (revision 37245bc18c974f3f961453ada3979f25976f17a0) +++ Ringtoets/Common/test/Ringtoets.Common.Plugin.Test/RingtoetsPluginHelperTest.cs (.../RingtoetsPluginHelperTest.cs) (revision 88a027f5282f504c25327525a3bf2e2e4950b09f) @@ -22,6 +22,8 @@ using Core.Common.Controls.Views; using NUnit.Framework; using Ringtoets.Common.Data.Calculation; +using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Common.Forms.Views; using Ringtoets.Common.Plugin; using Ringtoets.Common.Plugin.TestUtil; @@ -55,5 +57,25 @@ public void Dispose() {} } } + + [TestFixture] + public class ShouldCloseFailureMechanismSectionsViewTest : ShouldCloseFailureMechanismSectionsViewTester + { + protected override bool ShouldCloseMethod(FailureMechanismSectionsView view, object o) + { + return RingtoetsPluginHelper.ShouldCloseFailureMechanismSectionsView(view, o); + } + + protected override FailureMechanismSectionsView GetView(IFailureMechanism failureMechanism) + { + return new TestFailureMechanismSectionsView(failureMechanism); + } + + private class TestFailureMechanismSectionsView : FailureMechanismSectionsView + { + public TestFailureMechanismSectionsView(IFailureMechanism failureMechanism) + : base(failureMechanism.Sections, failureMechanism) {} + } + } } } \ No newline at end of file