Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingInput.cs =================================================================== diff -u -rd84616b18e726036cf4d2a4bbd1dd48b8b8ac8ef -r6fa4176d058f2f332fedcf0c95ad5db3a60332ce --- Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingInput.cs (.../PipingInput.cs) (revision d84616b18e726036cf4d2a4bbd1dd48b8b8ac8ef) +++ Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingInput.cs (.../PipingInput.cs) (revision 6fa4176d058f2f332fedcf0c95ad5db3a60332ce) @@ -64,8 +64,8 @@ this.generalInputParameters = generalInputParameters; - exitPointL = new RoundedDouble(3, double.NaN); - entryPointL = new RoundedDouble(3, double.NaN); + exitPointL = new RoundedDouble(2, double.NaN); + entryPointL = new RoundedDouble(2, double.NaN); phreaticLevelExit = new NormalDistribution(3); dampingFactorExit = new LogNormalDistribution(3) Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/PipingInputTest.cs =================================================================== diff -u -rd84616b18e726036cf4d2a4bbd1dd48b8b8ac8ef -r6fa4176d058f2f332fedcf0c95ad5db3a60332ce --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/PipingInputTest.cs (.../PipingInputTest.cs) (revision d84616b18e726036cf4d2a4bbd1dd48b8b8ac8ef) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/PipingInputTest.cs (.../PipingInputTest.cs) (revision 6fa4176d058f2f332fedcf0c95ad5db3a60332ce) @@ -128,9 +128,9 @@ Assert.AreEqual(2, inputParameters.SeepageLength.StandardDeviation.NumberOfDecimalPlaces); Assert.IsNaN(inputParameters.ExitPointL); - Assert.AreEqual(3, inputParameters.ExitPointL.NumberOfDecimalPlaces); + Assert.AreEqual(2, inputParameters.ExitPointL.NumberOfDecimalPlaces); Assert.IsNaN(inputParameters.EntryPointL); - Assert.AreEqual(3, inputParameters.EntryPointL.NumberOfDecimalPlaces); + Assert.AreEqual(2, inputParameters.EntryPointL.NumberOfDecimalPlaces); Assert.IsNaN(inputParameters.PiezometricHeadExit); Assert.AreEqual(2, inputParameters.PiezometricHeadExit.NumberOfDecimalPlaces); @@ -168,9 +168,9 @@ } [Test] - [TestCase(1e-4, Description = "Invalid ExitPointL due to rounding to 0.0")] + [TestCase(1e-6, Description = "Invalid ExitPointL due to rounding to 0.0")] [TestCase(0)] - [TestCase(-1e-4)] + [TestCase(-1e-6)] [TestCase(-21)] public void ExitPointL_ValueLessThanOrEqualToZero_ThrowsArgumentOutOfRangeException(double value) { @@ -185,7 +185,7 @@ } [Test] - [TestCase(-1e-3)] + [TestCase(-1e-2)] [TestCase(-21)] public void EntryPointL_ValueLessThanZero_ThrowsArgumentOutOfRangeException(double value) { @@ -200,7 +200,7 @@ } [Test] - [TestCase(-1e-4, Description = "Valid EntryPointL due to rounding to 0.0")] + [TestCase(-1e-3, Description = "Valid EntryPointL due to rounding to 0.0")] [TestCase(1.23456789)] public void EntryPointL_SetToNew_ValueIsRounded(double value) { Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Views/PipingCalculationsViewTest.cs =================================================================== diff -u -rd84616b18e726036cf4d2a4bbd1dd48b8b8ac8ef -r6fa4176d058f2f332fedcf0c95ad5db3a60332ce --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Views/PipingCalculationsViewTest.cs (.../PipingCalculationsViewTest.cs) (revision d84616b18e726036cf4d2a4bbd1dd48b8b8ac8ef) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Views/PipingCalculationsViewTest.cs (.../PipingCalculationsViewTest.cs) (revision 6fa4176d058f2f332fedcf0c95ad5db3a60332ce) @@ -283,8 +283,8 @@ Assert.AreEqual("Location 1", cells[hydraulicBoundaryLocationsColumnIndex].FormattedValue); Assert.AreEqual(1.111.ToString(CultureInfo.CurrentCulture), cells[dampingFactorExitMeanColumnIndex].FormattedValue); Assert.AreEqual(2.222.ToString(CultureInfo.CurrentCulture), cells[phreaticLevelExitMeanColumnIndex].FormattedValue); - Assert.AreEqual(3.333.ToString(CultureInfo.CurrentCulture), cells[entryPointLColumnIndex].FormattedValue); - Assert.AreEqual(4.444.ToString(CultureInfo.CurrentCulture), cells[exitPointLColumnIndex].FormattedValue); + Assert.AreEqual(3.33.ToString(CultureInfo.CurrentCulture), cells[entryPointLColumnIndex].FormattedValue); + Assert.AreEqual(4.44.ToString(CultureInfo.CurrentCulture), cells[exitPointLColumnIndex].FormattedValue); cells = rows[1].Cells; Assert.AreEqual(11, cells.Count); @@ -296,8 +296,8 @@ Assert.AreEqual("Location 2", cells[hydraulicBoundaryLocationsColumnIndex].FormattedValue); Assert.AreEqual(5.556.ToString(CultureInfo.CurrentCulture), cells[dampingFactorExitMeanColumnIndex].FormattedValue); Assert.AreEqual(6.667.ToString(CultureInfo.CurrentCulture), cells[phreaticLevelExitMeanColumnIndex].FormattedValue); - Assert.AreEqual(7.778.ToString(CultureInfo.CurrentCulture), cells[entryPointLColumnIndex].FormattedValue); - Assert.AreEqual(8.889.ToString(CultureInfo.CurrentCulture), cells[exitPointLColumnIndex].FormattedValue); + Assert.AreEqual(7.78.ToString(CultureInfo.CurrentCulture), cells[entryPointLColumnIndex].FormattedValue); + Assert.AreEqual(8.89.ToString(CultureInfo.CurrentCulture), cells[exitPointLColumnIndex].FormattedValue); } [Test] Index: Ringtoets/Piping/test/Ringtoets.Piping.Integration.Test/PipingCalculationsViewIntegrationTest.cs =================================================================== diff -u -rd84616b18e726036cf4d2a4bbd1dd48b8b8ac8ef -r6fa4176d058f2f332fedcf0c95ad5db3a60332ce --- Ringtoets/Piping/test/Ringtoets.Piping.Integration.Test/PipingCalculationsViewIntegrationTest.cs (.../PipingCalculationsViewIntegrationTest.cs) (revision d84616b18e726036cf4d2a4bbd1dd48b8b8ac8ef) +++ Ringtoets/Piping/test/Ringtoets.Piping.Integration.Test/PipingCalculationsViewIntegrationTest.cs (.../PipingCalculationsViewIntegrationTest.cs) (revision 6fa4176d058f2f332fedcf0c95ad5db3a60332ce) @@ -125,7 +125,7 @@ // Change an input parameter of the second calculation and ensure the data grid view is updated pipingCalculation2.InputParameters.ExitPointL = (RoundedDouble) 111.11; pipingCalculation2.InputParameters.NotifyObservers(); - Assert.AreEqual(string.Format("{0}", new RoundedDouble(3, 111.110)), dataGridView.Rows[1].Cells[exitPointLColumnIndex].FormattedValue); + Assert.AreEqual(string.Format("{0}", 111.11), dataGridView.Rows[1].Cells[exitPointLColumnIndex].FormattedValue); } }