Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/StabilityPointStructuresInputTest.cs =================================================================== diff -u -r8d42f78b73ab49db2934de47d82664ea0a1f2458 -r61d40fcfe715efa13eeeaec3f89b59d0e01b10b4 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/StabilityPointStructuresInputTest.cs (.../StabilityPointStructuresInputTest.cs) (revision 8d42f78b73ab49db2934de47d82664ea0a1f2458) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/StabilityPointStructuresInputTest.cs (.../StabilityPointStructuresInputTest.cs) (revision 61d40fcfe715efa13eeeaec3f89b59d0e01b10b4) @@ -992,6 +992,35 @@ call, "De waarde voor afstand onderkant wand en teen dijk moet groter of gelijk zijn aan 0."); } + [Test] + public void LevellingCount_ValidValue_ExpectedValues() + { + // Setup + var input = new StabilityPointStructuresInput(); + int levellingCount = new Random(21).Next(0, int.MaxValue); + + // Call + input.LevellingCount = levellingCount; + + // Assert + Assert.AreEqual(levellingCount, input.LevellingCount); + } + + [Test] + public void LevellingCount_InvalidValue_ThrowsArgumentOutOfRangException() + { + // Setup + var input = new StabilityPointStructuresInput(); + + // Call + TestDelegate call = () => input.LevellingCount = -1; + + // Assert + TestHelper.AssertThrowsArgumentExceptionAndTestMessage( + call, "De waarde voor aantal nivelleringen per jaar moet groter of gelijk zijn aan 0."); + } + + #endregion #region Helpers