Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacroStabilityInwards/MacroStabilityInwardsSoilLayer2DCreateExtensionsTest.cs =================================================================== diff -u -r1c2f91dd3d03b28ce5e493b068bc34ca4dfc9db7 -r8ff26e0d7885f432a6e470e8d68ce325bdc6a9bc --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacroStabilityInwards/MacroStabilityInwardsSoilLayer2DCreateExtensionsTest.cs (.../MacroStabilityInwardsSoilLayer2DCreateExtensionsTest.cs) (revision 1c2f91dd3d03b28ce5e493b068bc34ca4dfc9db7) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/MacroStabilityInwards/MacroStabilityInwardsSoilLayer2DCreateExtensionsTest.cs (.../MacroStabilityInwardsSoilLayer2DCreateExtensionsTest.cs) (revision 8ff26e0d7885f432a6e470e8d68ce325bdc6a9bc) @@ -116,6 +116,18 @@ AssertHoles(soilLayer, entity); } + private static void AssertHoles(MacroStabilityInwardsSoilLayer2D soilLayer, MacroStabilityInwardsSoilLayerTwoDEntity entity) + { + string expectedHolesXml = new RingXmlSerializer().ToXml(soilLayer.Holes); + Assert.AreEqual(expectedHolesXml, entity.HolesXml); + } + + private static void AssertOuterRing(Ring outerRing, MacroStabilityInwardsSoilLayerTwoDEntity entity) + { + string expectedOuterRingXml = new Point2DXmlSerializer().ToXml(outerRing.Points); + Assert.AreEqual(expectedOuterRingXml, entity.OuterRingXml); + } + [Test] public void Create_WithNaNProperties_ReturnsEntityWithPropertiesSetToNull() { @@ -195,18 +207,6 @@ TestHelper.AssertAreEqualButNotSame(materialName, entity.MaterialName); } - private static void AssertHoles(MacroStabilityInwardsSoilLayer2D soilLayer, MacroStabilityInwardsSoilLayerTwoDEntity entity) - { - string expectedHolesXml = new RingCollectionXmlSerializer().ToXml(soilLayer.Holes); - Assert.AreEqual(expectedHolesXml, entity.HolesXml); - } - - private static void AssertOuterRing(Ring outerRing, MacroStabilityInwardsSoilLayerTwoDEntity entity) - { - string expectedOuterRingXml = new Point2DCollectionXmlSerializer().ToXml(outerRing.Points); - Assert.AreEqual(expectedOuterRingXml, entity.OuterRingXml); - } - private static Ring CreateRandomRing(Random random) { return new Ring(new[]