Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/RingtoetsMapDataFeaturesFactoryTest.cs =================================================================== diff -u -rb7221a5a77ae68bee3347d4f06fab37505b44bf2 -ra43e923ba7f90d57988aaeecf132d25fe3db0c23 --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/RingtoetsMapDataFeaturesFactoryTest.cs (.../RingtoetsMapDataFeaturesFactoryTest.cs) (revision b7221a5a77ae68bee3347d4f06fab37505b44bf2) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/RingtoetsMapDataFeaturesFactoryTest.cs (.../RingtoetsMapDataFeaturesFactoryTest.cs) (revision a43e923ba7f90d57988aaeecf132d25fe3db0c23) @@ -776,6 +776,22 @@ Assert.AreEqual(foreshoreProfiles[1].Name, features[1].MetaData["Naam"]); } + [Test] + public void CreateSinglePointMapFeature_CreatesaSinglePointMapFeature() + { + // Setup + var point = new Point2D(0, 0); + + // Call + var pointMapFeature = RingtoetsMapDataFeaturesFactory.CreateSinglePointMapFeature(point); + + // Assert + Assert.AreEqual(1, pointMapFeature.MapGeometries.Count()); + MapGeometry mapGeometry = pointMapFeature.MapGeometries.First(); + Assert.AreEqual(1, mapGeometry.PointCollections.Count()); + Assert.AreSame(point, mapGeometry.PointCollections.First().First()); + } + private static void AssertEqualFeatureCollections(Point2D[] points, MapFeature[] features) { Assert.AreEqual(points.Length, features.Length);