Index: Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/GeneralWaveImpactAsphaltCoverWaveConditionsInputTest.cs =================================================================== diff -u --- Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/GeneralWaveImpactAsphaltCoverWaveConditionsInputTest.cs (revision 0) +++ Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/GeneralWaveImpactAsphaltCoverWaveConditionsInputTest.cs (revision 6ba841ede2bfbe9685aafac513cac423d3a705e0) @@ -0,0 +1,56 @@ +// Copyright (C) Stichting Deltares and State of the Netherlands 2026. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using Core.Common.Base.Data; +using NUnit.Framework; +using Riskeer.Common.Data.TestUtil; + +namespace Riskeer.WaveImpactAsphaltCover.Data.Test +{ + [TestFixture] + public class GeneralWaveConditionsInputTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Setup + var random = new Random(21); + double c = random.NextDouble(); + var c2 = new RoundedDouble(2, c); + + // Call + var generalInput = new GeneralWaveImpactAsphaltCoverWaveConditionsInput + { + C = c2 + }; + + // Assert + Assert.AreEqual(1.0, generalInput.A, generalInput.A.GetAccuracy()); + Assert.AreEqual(2, generalInput.A.NumberOfDecimalPlaces); + Assert.AreEqual(0.0, generalInput.B, generalInput.B.GetAccuracy()); + Assert.AreEqual(2, generalInput.B.NumberOfDecimalPlaces); + Assert.AreEqual(c2, generalInput.C, generalInput.C.GetAccuracy()); + Assert.AreEqual(2, generalInput.C.NumberOfDecimalPlaces); + } + + } +} Index: Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Forms.Test/PropertyClasses/HydraulicLoadsState/WaveImpactAsphaltCoverFailureMechanismPropertiesTest.cs =================================================================== diff -u -rd3914e9bf2e2397b76c435f002603d8399df04a0 -r6ba841ede2bfbe9685aafac513cac423d3a705e0 --- Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Forms.Test/PropertyClasses/HydraulicLoadsState/WaveImpactAsphaltCoverFailureMechanismPropertiesTest.cs (.../WaveImpactAsphaltCoverFailureMechanismPropertiesTest.cs) (revision d3914e9bf2e2397b76c435f002603d8399df04a0) +++ Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Forms.Test/PropertyClasses/HydraulicLoadsState/WaveImpactAsphaltCoverFailureMechanismPropertiesTest.cs (.../WaveImpactAsphaltCoverFailureMechanismPropertiesTest.cs) (revision 6ba841ede2bfbe9685aafac513cac423d3a705e0) @@ -19,10 +19,11 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using System.ComponentModel; +using Core.Common.Base.Data; using Core.Gui.TestUtil; using NUnit.Framework; -using Riskeer.Revetment.Data; using Riskeer.WaveImpactAsphaltCover.Data; using Riskeer.WaveImpactAsphaltCover.Forms.PropertyClasses; using Riskeer.WaveImpactAsphaltCover.Forms.PropertyClasses.HydraulicLoadsState; @@ -107,5 +108,21 @@ "De waarde van de parameter 'c' in de berekening voor golfcondities.", false); } + + [Test] + public void Test_InvalidValueParamC() + { + // Call + Assert.Catch(SetToOutOfBounds); + } + + private void SetToOutOfBounds() + { + var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); + var properties = new WaveImpactAsphaltCoverFailureMechanismProperties(failureMechanism); + // C must be in range [0, ... , 2] + properties.C = new RoundedDouble(2, 3.14); + } + } } \ No newline at end of file