Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/StochasticSoilModelEntityReadExtensionsTest.cs =================================================================== diff -u -ra20f5008f39cfa4fd6f94572fd07a011f76609f4 -r57bc6a475f6cdd57b1a0ebf70cdf533014afd1ff --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/StochasticSoilModelEntityReadExtensionsTest.cs (.../StochasticSoilModelEntityReadExtensionsTest.cs) (revision a20f5008f39cfa4fd6f94572fd07a011f76609f4) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/StochasticSoilModelEntityReadExtensionsTest.cs (.../StochasticSoilModelEntityReadExtensionsTest.cs) (revision 57bc6a475f6cdd57b1a0ebf70cdf533014afd1ff) @@ -85,10 +85,15 @@ public void ReadAsPipingStochasticSoilModel_WithMinimumEntity_ReturnsNewStochasticSoilModelWithPropertiesSet() { // Setup + var random = new Random(21); + var geometry = new[] + { + new Point2D(random.NextDouble(), random.NextDouble()) + }; var entity = new StochasticSoilModelEntity { Name = "testName", - StochasticSoilModelSegmentPointXml = new Point2DXmlSerializer().ToXml(new Point2D[0]) + StochasticSoilModelSegmentPointXml = new Point2DXmlSerializer().ToXml(geometry) }; var collector = new ReadConversionCollector(); @@ -98,18 +103,23 @@ // Assert Assert.IsNotNull(model); Assert.AreEqual(entity.Name, model.Name); - CollectionAssert.IsEmpty(model.Geometry); + CollectionAssert.AreEqual(geometry, model.Geometry); CollectionAssert.IsEmpty(model.StochasticSoilProfiles); } [Test] public void ReadAsPipingStochasticSoilModel_WithStochasticSoilProfiles_ReturnsNewPipingStochasticSoilModelWithStochasticSoilProfiles() { // Setup + var random = new Random(21); + var geometry = new[] + { + new Point2D(random.NextDouble(), random.NextDouble()) + }; var entity = new StochasticSoilModelEntity { Name = "StochasticSoilModel", - StochasticSoilModelSegmentPointXml = new Point2DXmlSerializer().ToXml(new Point2D[0]), + StochasticSoilModelSegmentPointXml = new Point2DXmlSerializer().ToXml(geometry), PipingStochasticSoilProfileEntities = { new PipingStochasticSoilProfileEntity @@ -180,10 +190,15 @@ public void ReadAsPipingStochasticSoilModel_SameStochasticSoilModelEntityMultipleTimes_ReturnSameStochasticSoilModel() { // Setup + var random = new Random(21); + var geometry = new[] + { + new Point2D(random.NextDouble(), random.NextDouble()) + }; var entity = new StochasticSoilModelEntity { Name = "StochasticSoilModel", - StochasticSoilModelSegmentPointXml = new Point2DXmlSerializer().ToXml(new Point2D[0]) + StochasticSoilModelSegmentPointXml = new Point2DXmlSerializer().ToXml(geometry) }; var collector = new ReadConversionCollector();