Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsGridTest.cs =================================================================== diff -u -r59adecfc7f82ab8277440ecae147453f5cbddbbf -rd485f27eb5a6d688406882dce60c3229e22f2ac2 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsGridTest.cs (.../MacroStabilityInwardsGridTest.cs) (revision 59adecfc7f82ab8277440ecae147453f5cbddbbf) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/MacroStabilityInwardsGridTest.cs (.../MacroStabilityInwardsGridTest.cs) (revision d485f27eb5a6d688406882dce60c3229e22f2ac2) @@ -22,6 +22,7 @@ using System; using Core.Common.Base.Data; using NUnit.Framework; +using Ringtoets.Common.Data.TestUtil; namespace Ringtoets.MacroStabilityInwards.Data.Test { @@ -55,11 +56,11 @@ public void Constructor_SetProperties_ExpectedValues() { // Setup - var random = new Random(); - double xLeft = random.Next(); - double xRight = random.Next(); - double zTop = random.Next(); - double zBottom = random.Next(); + var random = new Random(21); + double xLeft = random.NextDouble(); + double xRight = random.NextDouble(); + double zTop = random.NextDouble(); + double zBottom = random.NextDouble(); // call var grid = new MacroStabilityInwardsGrid @@ -71,10 +72,21 @@ }; // Assert - Assert.AreEqual(new RoundedDouble(2, xLeft), grid.XLeft); - Assert.AreEqual(new RoundedDouble(2, xRight), grid.XRight); - Assert.AreEqual(new RoundedDouble(2, zTop), grid.ZTop); - Assert.AreEqual(new RoundedDouble(2, zBottom), grid.ZBottom); + Assert.AreEqual(2, grid.XLeft.NumberOfDecimalPlaces); + Assert.AreEqual(xLeft, grid.XLeft, + grid.XLeft.GetAccuracy()); + + Assert.AreEqual(2, grid.XRight.NumberOfDecimalPlaces); + Assert.AreEqual(xRight, grid.XRight, + grid.XRight.GetAccuracy()); + + Assert.AreEqual(2, grid.ZTop.NumberOfDecimalPlaces); + Assert.AreEqual(zTop, grid.ZTop, + grid.ZTop.GetAccuracy()); + + Assert.AreEqual(2, grid.ZBottom.NumberOfDecimalPlaces); + Assert.AreEqual(zBottom, grid.ZBottom, + grid.ZBottom.GetAccuracy()); } } } \ No newline at end of file