Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.Test/ClosingStructuresFailureMechanismTest.cs =================================================================== diff -u -r46bd119497bde576fd18d0b4f93961f2a7f84c34 -r42c710f0341da1ca4fc911ef8ba502a41073e400 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.Test/ClosingStructuresFailureMechanismTest.cs (.../ClosingStructuresFailureMechanismTest.cs) (revision 46bd119497bde576fd18d0b4f93961f2a7f84c34) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.Test/ClosingStructuresFailureMechanismTest.cs (.../ClosingStructuresFailureMechanismTest.cs) (revision 42c710f0341da1ca4fc911ef8ba502a41073e400) @@ -59,16 +59,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 ClosingStructuresFailureMechanism(); - failureMechanism.SectionResults.Attach(observer); // Call failureMechanism.AddSection(new FailureMechanismSection(string.Empty, new[] @@ -80,18 +74,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 ClosingStructuresFailureMechanism(); failureMechanism.AddSection(new FailureMechanismSection("", new[] @@ -103,8 +91,6 @@ new Point2D(2, 1) })); - failureMechanism.SectionResults.Attach(observer); - // Precondition Assert.AreEqual(2, failureMechanism.Sections.Count()); Assert.AreEqual(2, failureMechanism.SectionResults.Count()); @@ -115,7 +101,6 @@ // Assert Assert.AreEqual(0, failureMechanism.Sections.Count()); Assert.AreEqual(0, failureMechanism.SectionResults.Count()); - mocks.VerifyAll(); } [Test]