Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PropertyClasses/StabilityPointStructuresFailureMechanismPropertiesTest.cs =================================================================== diff -u -r81e4be22ff8e2ea37c432625f91e986c95554297 -raf2bd715a523afe3f90baa0ad4e1ed6333ac1ad8 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PropertyClasses/StabilityPointStructuresFailureMechanismPropertiesTest.cs (.../StabilityPointStructuresFailureMechanismPropertiesTest.cs) (revision 81e4be22ff8e2ea37c432625f91e986c95554297) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/PropertyClasses/StabilityPointStructuresFailureMechanismPropertiesTest.cs (.../StabilityPointStructuresFailureMechanismPropertiesTest.cs) (revision af2bd715a523afe3f90baa0ad4e1ed6333ac1ad8) @@ -44,14 +44,7 @@ private const int modelFactorLoadEffectPropertyIndex = 7; private const int waveRatioMaxHNPropertyIndex = 8; private const int waveRatioMaxHStandardDeviationPropertyIndex = 9; - private MockRepository mockRepository; - [SetUp] - public void SetUp() - { - mockRepository = new MockRepository(); - } - [Test] public void Constructor_ExpectedValues() { @@ -67,8 +60,6 @@ public void Data_SetNewFailureMechanismContextInstance_ReturnCorrectPropertyValues() { // Setup - mockRepository.ReplayAll(); - var failureMechanism = new StabilityPointStructuresFailureMechanism(); var properties = new StabilityPointStructuresFailureMechanismProperties(); @@ -78,9 +69,9 @@ // Assert Assert.AreEqual("Kunstwerken - Sterkte en stabiliteit puntconstructies", properties.Name); Assert.AreEqual("STKWp", properties.Code); - Assert.AreEqual(3, properties.LengthEffect); GeneralStabilityPointStructuresInput generalInput = failureMechanism.GeneralInput; + Assert.AreEqual(generalInput.N, properties.LengthEffect); Assert.AreEqual(generalInput.GravitationalAcceleration, properties.GravitationalAcceleration); Assert.AreEqual(generalInput.ModelFactorStorageVolume.Mean, properties.ModelFactorStorageVolume.Mean); Assert.AreEqual(generalInput.ModelFactorStorageVolume.StandardDeviation, properties.ModelFactorStorageVolume.StandardDeviation); @@ -92,14 +83,13 @@ Assert.AreEqual(generalInput.ModelFactorLoadEffect.StandardDeviation, properties.ModelFactorLoadEffect.StandardDeviation); Assert.AreEqual(generalInput.WaveRatioMaxHN, properties.WaveRatioMaxHN); Assert.AreEqual(generalInput.WaveRatioMaxHStandardDeviation, properties.WaveRatioMaxHStandardDeviation); - - mockRepository.VerifyAll(); } [Test] public void SetProperties_IndividualProperties_UpdateDataAndNotifyObservers() { // Setup + var mockRepository = new MockRepository(); var observerMock = mockRepository.StrictMock(); observerMock.Expect(o => o.UpdateObserver()).Repeat.Times(1); mockRepository.ReplayAll(); @@ -212,8 +202,6 @@ "Rayleigh-N schaal parameter [-]", "Schaal parameter van de Rayleigh-N verdeling voor het quotiënt van Hmax en Hs voor N golven.", true); - - mockRepository.VerifyAll(); } } } \ No newline at end of file