Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsSoilLayer1DPropertiesTest.cs =================================================================== diff -u -r43b4218e6e71896eb4f3985555258caeb4c7f6f7 -rb63cec0b8149e4eea159c8f31edccb14420187ae --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsSoilLayer1DPropertiesTest.cs (.../MacroStabilityInwardsSoilLayer1DPropertiesTest.cs) (revision 43b4218e6e71896eb4f3985555258caeb4c7f6f7) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsSoilLayer1DPropertiesTest.cs (.../MacroStabilityInwardsSoilLayer1DPropertiesTest.cs) (revision b63cec0b8149e4eea159c8f31edccb14420187ae) @@ -21,10 +21,10 @@ using System; using System.ComponentModel; -using System.Globalization; using Core.Common.Gui.PropertyBag; using Core.Common.TestUtil; using NUnit.Framework; +using Ringtoets.Common.Data.TestUtil; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; using Ringtoets.MacroStabilityInwards.Forms.PropertyClasses; @@ -61,7 +61,9 @@ public void GetProperties_WithData_ReturnExpectedValues() { // Setup - var layer = new MacroStabilityInwardsSoilLayer1D(-2.9) + const double topLevel = 5.4321; + + var layer = new MacroStabilityInwardsSoilLayer1D(topLevel) { Data = { @@ -76,7 +78,8 @@ // Assert Assert.AreEqual(layer.Data.MaterialName, properties.Name); Assert.AreEqual(layer.Data.IsAquifer, properties.IsAquifer); - Assert.AreEqual(layer.Top.ToString(CultureInfo.CurrentCulture), properties.TopLevel); + Assert.AreEqual(2, properties.TopLevel.NumberOfDecimalPlaces); + Assert.AreEqual(topLevel, properties.TopLevel, properties.TopLevel.GetAccuracy()); } [Test]