Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismSectionResultRow.cs =================================================================== diff -u -reb57d12cd6a211b057827b5c8ec4c04973535724 -r26584a20ed79a9a782456c5ad758832e689f0f22 --- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismSectionResultRow.cs (.../ClosingStructuresFailureMechanismSectionResultRow.cs) (revision eb57d12cd6a211b057827b5c8ec4c04973535724) +++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismSectionResultRow.cs (.../ClosingStructuresFailureMechanismSectionResultRow.cs) (revision 26584a20ed79a9a782456c5ad758832e689f0f22) @@ -386,7 +386,8 @@ FailureMechanismSectionResultRowHelper.SetColumnState(ColumnStateDefinitions[simpleAssessmentResultIndex], false); FailureMechanismSectionResultRowHelper.SetColumnState(ColumnStateDefinitions[detailedAssessmentResultIndex], simpleAssessmentSufficient); - if (simpleAssessmentSufficient) + if (simpleAssessmentSufficient + || !FailureMechanismSectionResultRowHelper.DetailedAssessmentResultIsProbability(DetailedAssessmentResult)) { FailureMechanismSectionResultRowHelper.DisableColumn(ColumnStateDefinitions[detailedAssessmentProbabilityIndex]); } Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -reb57d12cd6a211b057827b5c8ec4c04973535724 -r26584a20ed79a9a782456c5ad758832e689f0f22 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs (.../ClosingStructuresFailureMechanismSectionResultRowTest.cs) (revision eb57d12cd6a211b057827b5c8ec4c04973535724) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs (.../ClosingStructuresFailureMechanismSectionResultRowTest.cs) (revision 26584a20ed79a9a782456c5ad758832e689f0f22) @@ -555,6 +555,41 @@ } } + [Test] + [TestCase(DetailedAssessmentResultType.NotAssessed, false)] + [TestCase(DetailedAssessmentResultType.Probability, true)] + public void Constructor_WithDetailedAssessmentResultSet_ExpectedColumnStates(DetailedAssessmentResultType detailedAssessmentResult, + bool cellEnabled) + { + // 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) + { + DetailedAssessmentResult = detailedAssessmentResult, + Calculation = CreateCalculationWithOutput() + }; + + using (new AssemblyToolCalculatorFactoryConfig()) + { + // Call + var row = new ClosingStructuresFailureMechanismSectionResultRow( + result, failureMechanism, assessmentSection, ConstructionProperties); + + // Assert + IDictionary columnStateDefinitions = row.ColumnStateDefinitions; + FailureMechanismSectionResultRowTestHelper.AssertColumnState(columnStateDefinitions[ConstructionProperties.DetailedAssessmentProbabilityIndex], + cellEnabled, + true); + mocks.VerifyAll(); + } + } + #endregion private static TestClosingStructuresCalculation CreateCalculationWithOutput()