Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/AssessmentSectionViewInfoTest.cs =================================================================== diff -u -r26ee4ff0515942af0d34790c13a16ac78f67e891 -rd53395158bfc8e501b6a7d3ae2940cc95c250b3c --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/AssessmentSectionViewInfoTest.cs (.../AssessmentSectionViewInfoTest.cs) (revision 26ee4ff0515942af0d34790c13a16ac78f67e891) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/AssessmentSectionViewInfoTest.cs (.../AssessmentSectionViewInfoTest.cs) (revision d53395158bfc8e501b6a7d3ae2940cc95c250b3c) @@ -21,11 +21,12 @@ using System.Drawing; using System.Linq; +using Core.Common.Controls.Views; using Core.Common.Gui.Plugin; using Core.Common.TestUtil; using NUnit.Framework; -using Rhino.Mocks; using Ringtoets.Common.Data.AssessmentSection; +using Ringtoets.Common.Data.TestUtil; using Ringtoets.Integration.Forms.Views; using RingtoetsFormsResources = Ringtoets.Integration.Forms.Properties.Resources; @@ -34,14 +35,12 @@ [TestFixture] public class AssessmentSectionViewInfoTest { - private MockRepository mocks; private RingtoetsPlugin plugin; private ViewInfo info; [SetUp] public void SetUp() { - mocks = new MockRepository(); plugin = new RingtoetsPlugin(); info = plugin.GetViewInfos().First(tni => tni.ViewType == typeof(AssessmentSectionView)); } @@ -78,5 +77,18 @@ // Assert TestHelper.AssertImagesAreEqual(RingtoetsFormsResources.Map, image); } + + [Test] + public void CreateInstance_WithAssessmentSection_ReturnsAssessmentSectionView() + { + // Setup + var assessmentSection = new ObservableTestAssessmentSectionStub(); + + // Call + IView view = info.CreateInstance(assessmentSection); + + // Assert + Assert.IsInstanceOf(view); + } } } \ No newline at end of file