Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Views/StabilityPointStructuresFailureMechanismSectionResultRow.cs =================================================================== diff -u -r8dddc6b41ea847c80b1be688b7a97a2fbd79be79 -r81073c4011710d9d0a21fee3cd6c2d0eb1d25d3c --- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Views/StabilityPointStructuresFailureMechanismSectionResultRow.cs (.../StabilityPointStructuresFailureMechanismSectionResultRow.cs) (revision 8dddc6b41ea847c80b1be688b7a97a2fbd79be79) +++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Views/StabilityPointStructuresFailureMechanismSectionResultRow.cs (.../StabilityPointStructuresFailureMechanismSectionResultRow.cs) (revision 81073c4011710d9d0a21fee3cd6c2d0eb1d25d3c) @@ -290,17 +290,6 @@ } } - /// - /// Gets the of the wrapped - /// . - /// - /// null if the wrapped section result does not have a calculation - /// set. Otherwise the calculation of the wrapped section result is returned. - public StructuresCalculation GetSectionResultCalculation() - { - return SectionResult.Calculation; - } - /// /// Thrown when /// is a valid value, but unsupported. Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -re5b36cc9da0245006e6df7f596b498a9c8e8908d -r81073c4011710d9d0a21fee3cd6c2d0eb1d25d3c --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismSectionResultRowTest.cs (.../StabilityPointStructuresFailureMechanismSectionResultRowTest.cs) (revision e5b36cc9da0245006e6df7f596b498a9c8e8908d) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismSectionResultRowTest.cs (.../StabilityPointStructuresFailureMechanismSectionResultRowTest.cs) (revision 81073c4011710d9d0a21fee3cd6c2d0eb1d25d3c) @@ -449,68 +449,6 @@ } } - [Test] - public void GetSectionResultCalculation_NoCalculationSetOnSectionResult_ReturnNull() - { - // Setup - var failureMechanism = new StabilityPointStructuresFailureMechanism(); - - var mocks = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(failureMechanism, mocks); - mocks.ReplayAll(); - - FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); - var result = new StabilityPointStructuresFailureMechanismSectionResult(section); - - // Precondition - Assert.IsNull(result.Calculation); - - using (new AssemblyToolCalculatorFactoryConfig()) - { - var row = new StabilityPointStructuresFailureMechanismSectionResultRow(result, failureMechanism, assessmentSection, - ConstructionProperties); - - // Call - StructuresCalculation calculation = row.GetSectionResultCalculation(); - - // Assert - Assert.IsNull(calculation); - mocks.VerifyAll(); - } - } - - [Test] - public void GetSectionResultCalculation_WithCalculationSetOnSectionResult_ReturnCalculation() - { - // Setup - var failureMechanism = new StabilityPointStructuresFailureMechanism(); - - var mocks = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(failureMechanism, mocks); - mocks.ReplayAll(); - - var expectedCalculation = new StructuresCalculation(); - - FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); - var result = new StabilityPointStructuresFailureMechanismSectionResult(section) - { - Calculation = expectedCalculation - }; - - using (new AssemblyToolCalculatorFactoryConfig()) - { - var row = new StabilityPointStructuresFailureMechanismSectionResultRow(result, failureMechanism, assessmentSection, - ConstructionProperties); - - // Call - StructuresCalculation calculation = row.GetSectionResultCalculation(); - - // Assert - Assert.AreSame(expectedCalculation, calculation); - mocks.VerifyAll(); - } - } - private static TestStabilityPointStructuresCalculation CreateCalculationWithOutput() { return new TestStabilityPointStructuresCalculation