Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresFailureMechanismTest.cs =================================================================== diff -u -r46bd119497bde576fd18d0b4f93961f2a7f84c34 -r42c710f0341da1ca4fc911ef8ba502a41073e400 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresFailureMechanismTest.cs (.../HeightStructuresFailureMechanismTest.cs) (revision 46bd119497bde576fd18d0b4f93961f2a7f84c34) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresFailureMechanismTest.cs (.../HeightStructuresFailureMechanismTest.cs) (revision 42c710f0341da1ca4fc911ef8ba502a41073e400) @@ -57,16 +57,10 @@ } [Test] - public void AddSection_WithSection_AddedSectionResultAndNotifiesObserver() + public void AddSection_WithSection_AddedSectionResult() { // Setup - var mocks = new MockRepository(); - var observer = mocks.StrictMock(); - observer.Expect(o => o.UpdateObserver()); - mocks.ReplayAll(); - var failureMechanism = new HeightStructuresFailureMechanism(); - failureMechanism.SectionResults.Attach(observer); // Call failureMechanism.AddSection(new FailureMechanismSection(string.Empty, new[] @@ -78,18 +72,12 @@ Assert.AreEqual(1, failureMechanism.Sections.Count()); Assert.AreEqual(1, failureMechanism.SectionResults.Count()); Assert.IsInstanceOf>(failureMechanism.SectionResults.ElementAt(0)); - mocks.VerifyAll(); } [Test] - public void ClearAllSections_WithSectionsAndSectionResults_SectionsAndSectionResultsClearedAndNotifiesObserver() + public void ClearAllSections_WithSectionsAndSectionResults_SectionsAndSectionResultsCleared() { // Setup - var mocks = new MockRepository(); - var observer = mocks.StrictMock(); - observer.Expect(o => o.UpdateObserver()); - mocks.ReplayAll(); - var failureMechanism = new HeightStructuresFailureMechanism(); failureMechanism.AddSection(new FailureMechanismSection("", new[] @@ -101,8 +89,6 @@ new Point2D(2, 1) })); - failureMechanism.SectionResults.Attach(observer); - // Precondition Assert.AreEqual(2, failureMechanism.Sections.Count()); Assert.AreEqual(2, failureMechanism.SectionResults.Count()); @@ -113,7 +99,6 @@ // Assert Assert.AreEqual(0, failureMechanism.Sections.Count()); Assert.AreEqual(0, failureMechanism.SectionResults.Count()); - mocks.VerifyAll(); } [Test]