Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/HydraulicBoundaryLocationRowTest.cs =================================================================== diff -u -r1ab0201beb5f403186b715a0ed4e30bcf7f78f9a -rfaea7b000850729e2b0c6c2a06fe3a7e94541abd --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/HydraulicBoundaryLocationRowTest.cs (.../HydraulicBoundaryLocationRowTest.cs) (revision 1ab0201beb5f403186b715a0ed4e30bcf7f78f9a) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/HydraulicBoundaryLocationRowTest.cs (.../HydraulicBoundaryLocationRowTest.cs) (revision faea7b000850729e2b0c6c2a06fe3a7e94541abd) @@ -20,9 +20,11 @@ // All rights reserved. using System; +using Core.Common.Base; using Core.Common.Base.Geometry; using Core.Common.TestUtil; using NUnit.Framework; +using Rhino.Mocks; using Ringtoets.Common.Data.Hydraulics; using Ringtoets.Common.Data.TestUtil; using Ringtoets.Common.Forms.TypeConverters; @@ -80,15 +82,23 @@ [Values(true, false)] bool setIllustrationPoints) { // Setup + var mockRepository = new MockRepository(); + var observer = mockRepository.StrictMock(); + observer.Expect(o => o.UpdateObserver()); + mockRepository.ReplayAll(); + var calculation = new HydraulicBoundaryLocationCalculation(); var row = new HydraulicBoundaryLocationRow(new TestHydraulicBoundaryLocation(), calculation); + row.CalculatableObject.Attach(observer); // Call row.IncludeIllustrationPoints = setIllustrationPoints; // Assert Assert.AreEqual(setIllustrationPoints, row.IncludeIllustrationPoints); Assert.AreEqual(setIllustrationPoints, calculation.InputParameters.ShouldIllustrationPointsBeCalculated); + + mockRepository.VerifyAll(); } [Test]