Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.Test/ClosingStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs =================================================================== diff -u -re1a93747d105f27392f4bc0655694810c7d29f4d -r784f8c63205c30af7cfbd62aaeacc87c19f0891e --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.Test/ClosingStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs (.../ClosingStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs) (revision e1a93747d105f27392f4bc0655694810c7d29f4d) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.Test/ClosingStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs (.../ClosingStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs) (revision 784f8c63205c30af7cfbd62aaeacc87c19f0891e) @@ -42,9 +42,10 @@ mocks.ReplayAll(); // Call - TestDelegate call = () => ClosingStructuresFailureMechanismSection2aAssessmentResultExtensions.GetAssessmentLayerTwoA(null, - new ClosingStructuresFailureMechanism(), - assessmentSection); + TestDelegate call = () => ClosingStructuresFailureMechanismSection2aAssessmentResultExtensions.GetAssessmentLayerTwoA( + null, + new ClosingStructuresFailureMechanism(), + assessmentSection); // Assert var exception = Assert.Throws(call); @@ -99,7 +100,8 @@ var failureMechanismSectionResult = new StructuresFailureMechanismSectionResult(section); // Call - double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new ClosingStructuresFailureMechanism(), assessmentSection); + double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new ClosingStructuresFailureMechanism(), + assessmentSection); // Assert Assert.IsNaN(assessmentLayerTwoA); @@ -121,7 +123,8 @@ }; // Call - double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new ClosingStructuresFailureMechanism(), assessmentSection); + double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new ClosingStructuresFailureMechanism(), + assessmentSection); // Assert Assert.IsNaN(assessmentLayerTwoA); @@ -143,15 +146,16 @@ { Calculation = new TestClosingStructuresCalculation { - Output = new TestStructuresOutput(new Random(39).NextDouble()) + Output = new TestStructuresOutput(0.45) } }; // Call - double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new ClosingStructuresFailureMechanism(), assessmentSection); + double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new ClosingStructuresFailureMechanism(), + assessmentSection); // Assert - Assert.AreEqual(0.45984249809357164, assessmentLayerTwoA); + Assert.AreEqual(0.32635522028792008, assessmentLayerTwoA); mocks.VerifyAll(); } } Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs =================================================================== diff -u -re1a93747d105f27392f4bc0655694810c7d29f4d -r784f8c63205c30af7cfbd62aaeacc87c19f0891e --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs (.../HeightStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs) (revision e1a93747d105f27392f4bc0655694810c7d29f4d) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs (.../HeightStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs) (revision 784f8c63205c30af7cfbd62aaeacc87c19f0891e) @@ -42,9 +42,10 @@ mocks.ReplayAll(); // Call - TestDelegate call = () => HeightStructuresFailureMechanismSection2aAssessmentResultExtensions.GetAssessmentLayerTwoA(null, - new HeightStructuresFailureMechanism(), - assessmentSection); + TestDelegate call = () => HeightStructuresFailureMechanismSection2aAssessmentResultExtensions.GetAssessmentLayerTwoA( + null, + new HeightStructuresFailureMechanism(), + assessmentSection); // Assert var exception = Assert.Throws(call); @@ -99,7 +100,8 @@ var failureMechanismSectionResult = new StructuresFailureMechanismSectionResult(section); // Call - double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new HeightStructuresFailureMechanism(), assessmentSection); + double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new HeightStructuresFailureMechanism(), + assessmentSection); // Assert Assert.IsNaN(assessmentLayerTwoA); @@ -121,7 +123,8 @@ }; // Call - double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new HeightStructuresFailureMechanism(), assessmentSection); + double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new HeightStructuresFailureMechanism(), + assessmentSection); // Assert Assert.IsNaN(assessmentLayerTwoA); @@ -143,15 +146,16 @@ { Calculation = new TestHeightStructuresCalculation { - Output = new TestStructuresOutput(new Random(39).NextDouble()) + Output = new TestStructuresOutput(0.8) } }; // Call - double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new HeightStructuresFailureMechanism(), assessmentSection); + double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new HeightStructuresFailureMechanism(), + assessmentSection); // Assert - Assert.AreEqual(0.45984249809357164, assessmentLayerTwoA); + Assert.AreEqual(0.21185539858339669, assessmentLayerTwoA); mocks.VerifyAll(); } } Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/StabilityPointStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs =================================================================== diff -u -re1a93747d105f27392f4bc0655694810c7d29f4d -r784f8c63205c30af7cfbd62aaeacc87c19f0891e --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/StabilityPointStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs (.../StabilityPointStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs) (revision e1a93747d105f27392f4bc0655694810c7d29f4d) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/StabilityPointStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs (.../StabilityPointStructuresFailureMechanismSection2aAssessmentResultExtensionsTest.cs) (revision 784f8c63205c30af7cfbd62aaeacc87c19f0891e) @@ -42,9 +42,10 @@ mocks.ReplayAll(); // Call - TestDelegate call = () => StabilityPointStructuresFailureMechanismSection2aAssessmentResultExtensions.GetAssessmentLayerTwoA(null, - new StabilityPointStructuresFailureMechanism(), - assessmentSection); + TestDelegate call = () => StabilityPointStructuresFailureMechanismSection2aAssessmentResultExtensions.GetAssessmentLayerTwoA( + null, + new StabilityPointStructuresFailureMechanism(), + assessmentSection); // Assert var exception = Assert.Throws(call); @@ -99,7 +100,8 @@ var failureMechanismSectionResult = new StructuresFailureMechanismSectionResult(section); // Call - double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new StabilityPointStructuresFailureMechanism(), assessmentSection); + double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new StabilityPointStructuresFailureMechanism(), + assessmentSection); // Assert Assert.IsNaN(assessmentLayerTwoA); @@ -121,7 +123,8 @@ }; // Call - double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new StabilityPointStructuresFailureMechanism(), assessmentSection); + double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new StabilityPointStructuresFailureMechanism(), + assessmentSection); // Assert Assert.IsNaN(assessmentLayerTwoA); @@ -143,15 +146,16 @@ { Calculation = new TestStabilityPointStructuresCalculation { - Output = new TestStructuresOutput(new Random(39).NextDouble()) + Output = new TestStructuresOutput(0.75) } }; // Call - double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new StabilityPointStructuresFailureMechanism(), assessmentSection); + double assessmentLayerTwoA = failureMechanismSectionResult.GetAssessmentLayerTwoA(new StabilityPointStructuresFailureMechanism(), + assessmentSection); // Assert - Assert.AreEqual(0.45984249809357164, assessmentLayerTwoA); + Assert.AreEqual(0.22662735237686821, assessmentLayerTwoA); mocks.VerifyAll(); } }