Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -r3c5eb8dc63626571ddee036cac675707bd0b0ff0 -r0aacf2dc29138c69f365fe26a143d4e83b172dbe --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismSectionResultRowTest.cs (.../GrassCoverErosionInwardsFailureMechanismSectionResultRowTest.cs) (revision 3c5eb8dc63626571ddee036cac675707bd0b0ff0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismSectionResultRowTest.cs (.../GrassCoverErosionInwardsFailureMechanismSectionResultRowTest.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; @@ -50,6 +52,8 @@ Assert.AreEqual(result.AssessmentLayerTwoA, row.AssessmentLayerTwoA); TestHelper.AssertTypeConverter( nameof(GrassCoverErosionInwardsFailureMechanismSectionResultRow.AssessmentLayerTwoA)); + TestHelper.AssertTypeConverter( + nameof(GrassCoverErosionInwardsFailureMechanismSectionResultRow.AssessmentLayerThree)); } [Test] @@ -167,6 +171,23 @@ Assert.AreSame(grassCoverErosionInwardsCalculation, calculation); } + [Test] + public void AssessmentLayerThree_ValueSet_ReturnExpectedValue() + { + // Setup + var random = new Random(21); + RoundedDouble assessmentLayerThree = random.NextRoundedDouble(); + + var sectionResult = new GrassCoverErosionInwardsFailureMechanismSectionResult(CreateSection()); + var row = new GrassCoverErosionInwardsFailureMechanismSectionResultRow(sectionResult); + + // Call + row.AssessmentLayerThree = assessmentLayerThree; + + // Assert + Assert.AreEqual(assessmentLayerThree, sectionResult.AssessmentLayerThree); + } + private static FailureMechanismSection CreateSection() { return new FailureMechanismSection("A", new[]