Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -r83f5499bf4aeeddd62dcd1ebecbdfe97ed61b406 -r9e4b6872c6d4980093b6f7516065ccf379f04786 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs (.../ClosingStructuresFailureMechanismSectionResultRowTest.cs) (revision 83f5499bf4aeeddd62dcd1ebecbdfe97ed61b406) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs (.../ClosingStructuresFailureMechanismSectionResultRowTest.cs) (revision 9e4b6872c6d4980093b6f7516065ccf379f04786) @@ -132,6 +132,7 @@ // Assert var exception = Assert.Throws(call); Assert.AreEqual("constructionProperties", exception.ParamName); + mocks.VerifyAll(); } [Test] @@ -1198,26 +1199,49 @@ yield return new TestCaseData(new ClosingStructuresFailureMechanismSectionResult(section) { + SimpleAssessmentResult = SimpleAssessmentResultType.ProbabilityNegligible + }).SetName("SectionWithoutCalculationAndSimpleAssessmentResultProbabilityNegligible"); + yield return new TestCaseData(new ClosingStructuresFailureMechanismSectionResult(section) + { + SimpleAssessmentResult = SimpleAssessmentResultType.ProbabilityNegligible, + Calculation = new StructuresCalculation() + }).SetName("SectionWithCalculationNoOutputAndSimpleAssessmentResultProbabilityNegligible"); + yield return new TestCaseData(new ClosingStructuresFailureMechanismSectionResult(section) + { + SimpleAssessmentResult = SimpleAssessmentResultType.ProbabilityNegligible, + Calculation = new StructuresCalculation + { + Output = new TestStructuresOutput(double.NaN) + } + }).SetName("SectionWithInvalidCalculationOutputAndSimpleAssessmentResultProbabilityNegligible"); + yield return new TestCaseData(new ClosingStructuresFailureMechanismSectionResult(section) + { + SimpleAssessmentResult = SimpleAssessmentResultType.ProbabilityNegligible, + Calculation = CreateCalculationWithOutput() + }).SetName("SectionWithValidCalculationOutputAndSimpleAssessmentResultProbabilityNegligible"); + + yield return new TestCaseData(new ClosingStructuresFailureMechanismSectionResult(section) + { SimpleAssessmentResult = SimpleAssessmentResultType.NotApplicable - }).SetName("SectionWithoutCalculation"); + }).SetName("SectionWithoutCalculationAndSimpleAssessmentResultNotApplicable"); yield return new TestCaseData(new ClosingStructuresFailureMechanismSectionResult(section) { SimpleAssessmentResult = SimpleAssessmentResultType.NotApplicable, - Calculation = new TestClosingStructuresCalculation() - }).SetName("SectionWithCalculationNoOutput"); + Calculation = new StructuresCalculation() + }).SetName("SectionWithCalculationNoOutputAndSimpleAssessmentResultNotApplicable"); yield return new TestCaseData(new ClosingStructuresFailureMechanismSectionResult(section) { SimpleAssessmentResult = SimpleAssessmentResultType.NotApplicable, - Calculation = new TestClosingStructuresCalculation + Calculation = new StructuresCalculation { Output = new TestStructuresOutput(double.NaN) } - }).SetName("SectionWithInvalidCalculationOutput"); + }).SetName("SectionWithInvalidCalculationOutputAndSimpleAssessmentResultNotApplicable"); yield return new TestCaseData(new ClosingStructuresFailureMechanismSectionResult(section) { SimpleAssessmentResult = SimpleAssessmentResultType.NotApplicable, Calculation = CreateCalculationWithOutput() - }).SetName("SectionWithValidCalculationOutput"); + }).SetName("SectionWithValidCalculationOutputAndSimpleAssessmentResultNotApplicable"); } #endregion