Index: Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.Forms.Test/PropertyClasses/StabilityStoneCoverFailurePathPropertiesTest.cs =================================================================== diff -u -r4eefa7202e554b16c2ad9304012fcf421b375141 -re9087dd9bd4151971341dd73f8a886a8ffae24a7 --- Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.Forms.Test/PropertyClasses/StabilityStoneCoverFailurePathPropertiesTest.cs (.../StabilityStoneCoverFailurePathPropertiesTest.cs) (revision 4eefa7202e554b16c2ad9304012fcf421b375141) +++ Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.Forms.Test/PropertyClasses/StabilityStoneCoverFailurePathPropertiesTest.cs (.../StabilityStoneCoverFailurePathPropertiesTest.cs) (revision e9087dd9bd4151971341dd73f8a886a8ffae24a7) @@ -120,10 +120,15 @@ [TestCase(0.0)] [TestCase(-1.0)] [TestCase(-20.0)] - public void N_SetInvalidValue_ThrowsArgumentOutOfRangeException(double newN) + public void N_SetInvalidValue_ThrowsArgumentOutOfRangeExceptionNoNotifications(double newN) { // Setup + var mocks = new MockRepository(); + var observer = mocks.StrictMock(); + mocks.ReplayAll(); + var failureMechanism = new StabilityStoneCoverFailureMechanism(); + failureMechanism.Attach(observer); var properties = new StabilityStoneCoverFailurePathProperties(failureMechanism); @@ -133,6 +138,8 @@ // Assert const string expectedMessage = "De waarde voor 'N' moet in het bereik [1,00, 20,00] liggen."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(Call, expectedMessage); + + mocks.VerifyAll(); } [Test]