Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacroStabilityInwards/MacroStabilityInwardsCalculationScenarioCreateExtensionsTest.cs =================================================================== diff -u -rce5fb67782799e1a30202e917044803e62e7e078 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacroStabilityInwards/MacroStabilityInwardsCalculationScenarioCreateExtensionsTest.cs (.../MacroStabilityInwardsCalculationScenarioCreateExtensionsTest.cs) (revision ce5fb67782799e1a30202e917044803e62e7e078) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacroStabilityInwards/MacroStabilityInwardsCalculationScenarioCreateExtensionsTest.cs (.../MacroStabilityInwardsCalculationScenarioCreateExtensionsTest.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -218,8 +218,8 @@ PiezometricHeadPhreaticLine2Inwards = random.NextRoundedDouble(), GridDeterminationType = random.NextEnumValue(), TangentLineDeterminationType = random.NextEnumValue(), - TangentLineZTop = random.NextRoundedDouble(), - TangentLineZBottom = random.NextRoundedDouble(), + TangentLineZTop = random.NextRoundedDouble(2.0, 3.0), + TangentLineZBottom = random.NextRoundedDouble(0.0, 1.0), TangentLineNumber = random.Next(1, 50), LeftGrid = { Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/MacroStabilityInwards/MacroStabilityInwardsCalculationEntityReadExtensionsTest.cs =================================================================== diff -u -rce5fb67782799e1a30202e917044803e62e7e078 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/MacroStabilityInwards/MacroStabilityInwardsCalculationEntityReadExtensionsTest.cs (.../MacroStabilityInwardsCalculationEntityReadExtensionsTest.cs) (revision ce5fb67782799e1a30202e917044803e62e7e078) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/MacroStabilityInwards/MacroStabilityInwardsCalculationEntityReadExtensionsTest.cs (.../MacroStabilityInwardsCalculationEntityReadExtensionsTest.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -99,8 +99,8 @@ PiezometricHeadPhreaticLine2Inwards = random.NextDouble(), GridDeterminationType = Convert.ToByte(random.NextBoolean()), TangentLineDeterminationType = Convert.ToByte(random.NextBoolean()), - TangentLineZTop = random.NextDouble(), - TangentLineZBottom = random.NextDouble(), + TangentLineZTop = random.GetFromRange(2.0, 3.0), + TangentLineZBottom = random.GetFromRange(0.0, 1.0), TangentLineNumber = random.Next(1, 50), LeftGridXLeft = random.GetFromRange(0.0, 1.0), LeftGridXRight = random.GetFromRange(2.0, 3.0), Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs =================================================================== diff -u -rce5fb67782799e1a30202e917044803e62e7e078 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision ce5fb67782799e1a30202e917044803e62e7e078) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -1270,8 +1270,8 @@ PiezometricHeadPhreaticLine2Inwards = (RoundedDouble) 2.5, GridDeterminationType = MacroStabilityInwardsGridDeterminationType.Manual, TangentLineDeterminationType = MacroStabilityInwardsTangentLineDeterminationType.Specified, - TangentLineZTop = (RoundedDouble) 2.6, - TangentLineZBottom = (RoundedDouble) 2.7, + TangentLineZTop = (RoundedDouble) 2.7, + TangentLineZBottom = (RoundedDouble) 2.6, TangentLineNumber = 2, LeftGrid = { @@ -1348,8 +1348,8 @@ LeakageLengthInwardsPhreaticLine4 = (RoundedDouble) 40.3, PiezometricHeadPhreaticLine2Outwards = (RoundedDouble) 40.4, PiezometricHeadPhreaticLine2Inwards = (RoundedDouble) 40.5, - TangentLineZTop = (RoundedDouble) 40.6, - TangentLineZBottom = (RoundedDouble) 40.7, + TangentLineZTop = (RoundedDouble) 40.7, + TangentLineZBottom = (RoundedDouble) 40.6, TangentLineNumber = 2, LeftGrid = { Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsInput.cs =================================================================== diff -u -rfa246a94fedc1f9e701fdd7dedc6bb39ad2aa7a1 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsInput.cs (.../MacroStabilityInwardsInput.cs) (revision fa246a94fedc1f9e701fdd7dedc6bb39ad2aa7a1) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsInput.cs (.../MacroStabilityInwardsInput.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -399,6 +399,8 @@ /// Gets or sets the tangent line z top. /// [m+NAP] /// + /// Thrown when is not larger + /// than or is . public RoundedDouble TangentLineZTop { get @@ -407,6 +409,11 @@ } set { + if (!IsSmallerOrNaN(TangentLineZBottom, value)) + { + throw new ArgumentException(Resources.MacroStabilityInwardsInput_TangentLineZTop_should_be_larger_than_TangentLineZBottom); + } + tangentLineZTop = value.ToPrecision(tangentLineZTop.NumberOfDecimalPlaces); } } @@ -415,6 +422,8 @@ /// Gets or sets the tangent line z bottom. /// [m+NAP] /// + /// Thrown when is not smaller + /// than or is . public RoundedDouble TangentLineZBottom { get @@ -423,6 +432,11 @@ } set { + if (!IsSmallerOrNaN(value, TangentLineZTop)) + { + throw new ArgumentException(Resources.MacroStabilityInwardsInput_TangentLineZBottom_should_be_smaller_than_TangentLineZTop); + } + tangentLineZBottom = value.ToPrecision(tangentLineZBottom.NumberOfDecimalPlaces); } } Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Properties/Resources.Designer.cs =================================================================== diff -u -rfa246a94fedc1f9e701fdd7dedc6bb39ad2aa7a1 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision fa246a94fedc1f9e701fdd7dedc6bb39ad2aa7a1) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -154,6 +154,16 @@ } /// + /// Looks up a localized string similar to Tangentlijn Z-onder moet kleiner zijn dan tangentlijn Z-boven, of NaN.. + /// + public static string MacroStabilityInwardsInput_TangentLineZBottom_should_be_smaller_than_TangentLineZTop { + get { + return ResourceManager.GetString("MacroStabilityInwardsInput_TangentLineZBottom_should_be_smaller_than_TangentLineZ" + + "Top", resourceCulture); + } + } + + /// /// Looks up a localized string similar to Tangentlijn Z-boven moet groter zijn dan tangentlijn Z-onder, of NaN.. /// public static string MacroStabilityInwardsInput_TangentLineZTop_should_be_larger_than_TangentLineZBottom { Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Properties/Resources.resx =================================================================== diff -u -rfa246a94fedc1f9e701fdd7dedc6bb39ad2aa7a1 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Properties/Resources.resx (.../Resources.resx) (revision fa246a94fedc1f9e701fdd7dedc6bb39ad2aa7a1) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/Properties/Resources.resx (.../Resources.resx) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -177,4 +177,7 @@ Tangentlijn Z-boven moet groter zijn dan tangentlijn Z-onder, of NaN. + + Tangentlijn Z-onder moet kleiner zijn dan tangentlijn Z-boven, of NaN. + \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsGridTest.cs =================================================================== diff -u -rfa246a94fedc1f9e701fdd7dedc6bb39ad2aa7a1 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsGridTest.cs (.../MacroStabilityInwardsGridTest.cs) (revision fa246a94fedc1f9e701fdd7dedc6bb39ad2aa7a1) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsGridTest.cs (.../MacroStabilityInwardsGridTest.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -59,7 +59,7 @@ } [Test] - [TestCaseSource(nameof(GetInValidPointCombinations))] + [TestCaseSource(nameof(GetInvalidPointCombinations))] public void Constructor_InvalidX_ThrowsArgumentException(double xLeft, double xRight) { // Call @@ -83,7 +83,7 @@ } [Test] - [TestCaseSource(nameof(GetInValidPointCombinations))] + [TestCaseSource(nameof(GetInvalidPointCombinations))] public void Constructor_InvalidZ_ThrowsArgumentException(double zBottom, double zTop) { // Call @@ -151,7 +151,7 @@ } [Test] - [TestCaseSource(nameof(GetInValidPointCombinations))] + [TestCaseSource(nameof(GetInvalidPointCombinations))] public void XLeft_InvalidXLeft_ThrowsArgumentException(double xLeft, double xRight) { // Setup @@ -166,7 +166,7 @@ } [Test] - [TestCaseSource(nameof(GetInValidPointCombinations))] + [TestCaseSource(nameof(GetInvalidPointCombinations))] public void XRight_InvalidXRight_ThrowsArgumentException(double xLeft, double xRight) { // Setup @@ -181,7 +181,7 @@ } [Test] - [TestCaseSource(nameof(GetInValidPointCombinations))] + [TestCaseSource(nameof(GetInvalidPointCombinations))] public void ZTop_InvalidZTop_ThrowsArgumentException(double zBottom, double zTop) { // Setup @@ -196,7 +196,7 @@ } [Test] - [TestCaseSource(nameof(GetInValidPointCombinations))] + [TestCaseSource(nameof(GetInvalidPointCombinations))] public void ZBottom_InvalidZBottom_ThrowsArgumentException(double zBottom, double zTop) { // Setup @@ -265,7 +265,7 @@ CoreCloneAssert.AreObjectClones(original, clone, MacroStabilityInwardsCloneAssert.AreClones); } - private static IEnumerable GetInValidPointCombinations() + private static IEnumerable GetInvalidPointCombinations() { yield return new TestCaseData(0.0, 0.0); yield return new TestCaseData(1.0, 0.0); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsInputTest.cs =================================================================== diff -u -rfa246a94fedc1f9e701fdd7dedc6bb39ad2aa7a1 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsInputTest.cs (.../MacroStabilityInwardsInputTest.cs) (revision fa246a94fedc1f9e701fdd7dedc6bb39ad2aa7a1) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsInputTest.cs (.../MacroStabilityInwardsInputTest.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -163,8 +163,8 @@ double rightGridZTop = random.GetFromRange(2.0, 3.0); double rightGridZBottom = random.GetFromRange(0.0, 1.0); - double tangentLineZTop = random.NextDouble(); - double tangentLineZBottom = random.NextDouble(); + double tangentLineZTop = random.GetFromRange(2.0, 3.0); + double tangentLineZBottom = random.GetFromRange(0.0, 1.0); var properties = new MacroStabilityInwardsInput.ConstructionProperties { @@ -231,8 +231,8 @@ double leakageLengthInwardsPhreaticLine4 = random.NextDouble(); double piezometricHeadPhreaticLine2Outwards = random.NextDouble(); double piezometricHeadPhreaticLine2Inwards = random.NextDouble(); - double tangentLineZTop = random.NextDouble(); - double tangentLineZBottom = random.NextDouble(); + double tangentLineZTop = random.GetFromRange(2.0, 3.0); + double tangentLineZBottom = random.GetFromRange(0.0, 1.0); int tangentLineNumber = random.Next(1, 51); // Call @@ -480,6 +480,42 @@ } [Test] + [TestCaseSource(nameof(GetInvalidTangentCombinations))] + public void TangentLineZTop_InvalidTangentLineZTop_ThrowsArgumentException(double zBottom, double zTop) + { + // Setup + var inputParameters = new MacroStabilityInwardsInput(new MacroStabilityInwardsInput.ConstructionProperties + { + TangentLineZBottom = zBottom + }); + + // Call + TestDelegate test = () => inputParameters.TangentLineZTop = (RoundedDouble) zTop; + + // Assert + const string expectedMessage = "Tangentlijn Z-boven moet groter zijn dan tangentlijn Z-onder, of NaN."; + TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); + } + + [Test] + [TestCaseSource(nameof(GetInvalidTangentCombinations))] + public void TangentLineZBottom_InvalidTangentLineZBottom_ThrowsArgumentException(double zBottom, double zTop) + { + // Setup + var inputParameters = new MacroStabilityInwardsInput(new MacroStabilityInwardsInput.ConstructionProperties + { + TangentLineZTop = zTop + }); + + // Call + TestDelegate test = () => inputParameters.TangentLineZBottom = (RoundedDouble) zBottom; + + // Assert + const string expectedMessage = "Tangentlijn Z-onder moet kleiner zijn dan tangentlijn Z-boven, of NaN."; + TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); + } + + [Test] [TestCase(0)] [TestCase(51)] public void TangentLineNumber_SetValueOutsideValidRange_ThrowArgumentOutOfRangeException(int tangentLineNumber) @@ -698,5 +734,12 @@ }, expectedTangentLineMessage) .SetName("TangentLine ZTop smaller than ZBottom"); } + + private static IEnumerable GetInvalidTangentCombinations() + { + yield return new TestCaseData(0.0, 0.0); + yield return new TestCaseData(1.0, 0.0); + yield return new TestCaseData(0.0, -1.0); + } } } \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil.Test/MacroStabilityInwardsCalculationScenarioFactoryTest.cs =================================================================== diff -u -rce5fb67782799e1a30202e917044803e62e7e078 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil.Test/MacroStabilityInwardsCalculationScenarioFactoryTest.cs (.../MacroStabilityInwardsCalculationScenarioFactoryTest.cs) (revision ce5fb67782799e1a30202e917044803e62e7e078) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil.Test/MacroStabilityInwardsCalculationScenarioFactoryTest.cs (.../MacroStabilityInwardsCalculationScenarioFactoryTest.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -277,7 +277,7 @@ inputParameters.ZCoordinateDrainageConstruction.GetAccuracy()); Assert.AreEqual(MacroStabilityInwardsGridDeterminationType.Manual, inputParameters.GridDeterminationType); Assert.AreEqual(MacroStabilityInwardsTangentLineDeterminationType.Specified, inputParameters.TangentLineDeterminationType); - Assert.AreEqual(1, inputParameters.TangentLineZTop, + Assert.AreEqual(2, inputParameters.TangentLineZTop, inputParameters.TangentLineZTop.GetAccuracy()); Assert.AreEqual(1, inputParameters.TangentLineZBottom, inputParameters.TangentLineZBottom.GetAccuracy()); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil/MacroStabilityInwardsCalculationScenarioFactory.cs =================================================================== diff -u -rce5fb67782799e1a30202e917044803e62e7e078 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil/MacroStabilityInwardsCalculationScenarioFactory.cs (.../MacroStabilityInwardsCalculationScenarioFactory.cs) (revision ce5fb67782799e1a30202e917044803e62e7e078) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.TestUtil/MacroStabilityInwardsCalculationScenarioFactory.cs (.../MacroStabilityInwardsCalculationScenarioFactory.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -270,7 +270,7 @@ ZCoordinateDrainageConstruction = (RoundedDouble) 1.0, GridDeterminationType = MacroStabilityInwardsGridDeterminationType.Manual, TangentLineDeterminationType = MacroStabilityInwardsTangentLineDeterminationType.Specified, - TangentLineZTop = (RoundedDouble) 1.0, + TangentLineZTop = (RoundedDouble) 2.0, TangentLineZBottom = (RoundedDouble) 1.0, TangentLineNumber = 10, LeftGrid = Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsGridSettingsPropertiesTest.cs =================================================================== diff -u -rd485f27eb5a6d688406882dce60c3229e22f2ac2 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsGridSettingsPropertiesTest.cs (.../MacroStabilityInwardsGridSettingsPropertiesTest.cs) (revision d485f27eb5a6d688406882dce60c3229e22f2ac2) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsGridSettingsPropertiesTest.cs (.../MacroStabilityInwardsGridSettingsPropertiesTest.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -235,8 +235,8 @@ bool moveGrid = random.NextBoolean(); var gridDeterminationType = random.NextEnumValue(); var tangentLineDeterminationType = random.NextEnumValue(); - double tangentLineZTop = random.NextDouble(); - double tangentLineZBottom = random.NextDouble(); + double tangentLineZTop = random.GetFromRange(2.0, 3.0); + double tangentLineZBottom = random.GetFromRange(0.0, 1.0); int tangentLineNumber = random.Next(1, 51); // When Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Creators/Input/SlipPlaneUpliftVanCreatorTest.cs =================================================================== diff -u -r566943640717a91ff377a58a341bbbe1bcd2e516 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Creators/Input/SlipPlaneUpliftVanCreatorTest.cs (.../SlipPlaneUpliftVanCreatorTest.cs) (revision 566943640717a91ff377a58a341bbbe1bcd2e516) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Creators/Input/SlipPlaneUpliftVanCreatorTest.cs (.../SlipPlaneUpliftVanCreatorTest.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -21,6 +21,7 @@ using System; using Core.Common.Base.Data; +using Core.Common.TestUtil; using Deltares.WTIStability; using NUnit.Framework; using Ringtoets.MacroStabilityInwards.KernelWrapper.Calculators.UpliftVan; @@ -60,8 +61,8 @@ var rightGridZBottom = new RoundedDouble(2, random.NextDouble()); int rightGridXNumber = random.Next(); int rightGridZNumber = random.Next(); - double tangentLineZTop = random.NextDouble(); - double tangentLineZBottom = random.NextDouble(); + double tangentLineZTop = random.GetFromRange(2.0, 3.0); + double tangentLineZBottom = random.GetFromRange(0.0, 1.0); int tangentLineNumber = random.Next(); var leftGrid = new UpliftVanGrid(leftGridXLeft, leftGridXRight, leftGridZTop, leftGridZBottom, leftGridXNumber, leftGridZNumber); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/Converters/UpliftVanSlipPlaneConverterTest.cs =================================================================== diff -u -rce5fb67782799e1a30202e917044803e62e7e078 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/Converters/UpliftVanSlipPlaneConverterTest.cs (.../UpliftVanSlipPlaneConverterTest.cs) (revision ce5fb67782799e1a30202e917044803e62e7e078) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/Converters/UpliftVanSlipPlaneConverterTest.cs (.../UpliftVanSlipPlaneConverterTest.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -146,8 +146,8 @@ NumberOfHorizontalPoints = random.Next(1, 100) }, TangentLineDeterminationType = MacroStabilityInwardsTangentLineDeterminationType.Specified, - TangentLineZTop = random.NextRoundedDouble(), - TangentLineZBottom = random.NextRoundedDouble(), + TangentLineZTop = random.NextRoundedDouble(2.0, 3.0), + TangentLineZBottom = random.NextRoundedDouble(0.0, 1.0), TangentLineNumber = random.Next(1, 51) }; Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsCalculationServiceTest.cs =================================================================== diff -u -rce5fb67782799e1a30202e917044803e62e7e078 -r10e060be0b77c159b3e99a7200e43c4326b17642 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsCalculationServiceTest.cs (.../MacroStabilityInwardsCalculationServiceTest.cs) (revision ce5fb67782799e1a30202e917044803e62e7e078) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsCalculationServiceTest.cs (.../MacroStabilityInwardsCalculationServiceTest.cs) (revision 10e060be0b77c159b3e99a7200e43c4326b17642) @@ -492,8 +492,8 @@ var random = new Random(11); MacroStabilityInwardsInput inputParameters = testCalculation.InputParameters; inputParameters.GridDeterminationType = MacroStabilityInwardsGridDeterminationType.Automatic; - inputParameters.TangentLineZTop = random.NextRoundedDouble(); - inputParameters.TangentLineZBottom = random.NextRoundedDouble(); + inputParameters.TangentLineZTop = random.NextRoundedDouble(2.0, 3.0); + inputParameters.TangentLineZBottom = random.NextRoundedDouble(0.0, 1.0); inputParameters.TangentLineNumber = random.Next(1, 51); inputParameters.LeftGrid.XLeft = random.NextRoundedDouble(0.0, 1.0); inputParameters.LeftGrid.XRight = random.NextRoundedDouble(2.0, 3.0);