Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -rb28a844780b613e1901fa82328ba3917f485c729 -r0aacf2dc29138c69f365fe26a143d4e83b172dbe --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs (.../ClosingStructuresFailureMechanismSectionResultRowTest.cs) (revision b28a844780b613e1901fa82328ba3917f485c729) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs (.../ClosingStructuresFailureMechanismSectionResultRowTest.cs) (revision 0aacf2dc29138c69f365fe26a143d4e83b172dbe) @@ -19,6 +19,8 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; +using Core.Common.Base.Data; using Core.Common.Base.Geometry; using Core.Common.TestUtil; using NUnit.Framework; @@ -51,6 +53,8 @@ Assert.AreEqual(result.AssessmentLayerTwoA, row.AssessmentLayerTwoA); TestHelper.AssertTypeConverter( nameof(ClosingStructuresFailureMechanismSectionResultRow.AssessmentLayerTwoA)); + TestHelper.AssertTypeConverter( + nameof(ClosingStructuresFailureMechanismSectionResultRow.AssessmentLayerThree)); } [Test] @@ -164,6 +168,23 @@ Assert.AreSame(expectedCalculation, calculation); } + [Test] + public void AssessmentLayerThree_ValueSet_ReturnExpectedValue() + { + // Setup + var random = new Random(21); + RoundedDouble assessmentLayerThree = random.NextRoundedDouble(); + + var sectionResult = new ClosingStructuresFailureMechanismSectionResult(CreateSection()); + var row = new ClosingStructuresFailureMechanismSectionResultRow(sectionResult); + + // Call + row.AssessmentLayerThree = assessmentLayerThree; + + // Assert + Assert.AreEqual(assessmentLayerThree, sectionResult.AssessmentLayerThree); + } + private static FailureMechanismSection CreateSection() { return new FailureMechanismSection("name", new[]