Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -rf0ba49747b6479aae5f07afdd435fcc87e2d9181 -r83f5499bf4aeeddd62dcd1ebecbdfe97ed61b406 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs (.../ClosingStructuresFailureMechanismSectionResultRowTest.cs) (revision f0ba49747b6479aae5f07afdd435fcc87e2d9181) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs (.../ClosingStructuresFailureMechanismSectionResultRowTest.cs) (revision 83f5499bf4aeeddd62dcd1ebecbdfe97ed61b406) @@ -465,60 +465,6 @@ } } - [Test] - public void GetSectionResultCalculation_NoCalculationSetOnSectionResult_ReturnNull() - { - // Setup - var failureMechanism = new ClosingStructuresFailureMechanism(); - - var mocks = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(failureMechanism, mocks); - mocks.ReplayAll(); - - FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); - var result = new ClosingStructuresFailureMechanismSectionResult(section); - - // Precondition - Assert.IsNull(result.Calculation); - - var row = new ClosingStructuresFailureMechanismSectionResultRow(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 ClosingStructuresFailureMechanism(); - - var mocks = new MockRepository(); - IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(failureMechanism, mocks); - mocks.ReplayAll(); - - var expectedCalculation = new StructuresCalculation(); - - FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); - var result = new ClosingStructuresFailureMechanismSectionResult(section) - { - Calculation = expectedCalculation - }; - - var row = new ClosingStructuresFailureMechanismSectionResultRow(result, failureMechanism, assessmentSection, ConstructionProperties); - - // Call - StructuresCalculation calculation = row.GetSectionResultCalculation(); - - // Assert - Assert.AreSame(expectedCalculation, calculation); - mocks.VerifyAll(); - } - private static TestClosingStructuresCalculation CreateCalculationWithOutput() { return new TestClosingStructuresCalculation @@ -737,8 +683,8 @@ calculator.CombinedAssemblyCategoryOutput = assemblyCategoryGroup; // Call - var row = new ClosingStructuresFailureMechanismSectionResultRow(result, - failureMechanism, + var row = new ClosingStructuresFailureMechanismSectionResultRow(result, + failureMechanism, assessmentSection, ConstructionProperties);