Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/RingtoetsPipingSurfaceLineCreateExtensionsTest.cs =================================================================== diff -u -r37aadd6a7b1a13ef1c8809b3479df0911c6632bb -rc312034c7478db99d3c2ef96b1c351df806e8d21 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/RingtoetsPipingSurfaceLineCreateExtensionsTest.cs (.../RingtoetsPipingSurfaceLineCreateExtensionsTest.cs) (revision 37aadd6a7b1a13ef1c8809b3479df0911c6632bb) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/RingtoetsPipingSurfaceLineCreateExtensionsTest.cs (.../RingtoetsPipingSurfaceLineCreateExtensionsTest.cs) (revision c312034c7478db99d3c2ef96b1c351df806e8d21) @@ -79,6 +79,27 @@ } [Test] + public void Create_StringPropertiesDoNotShareReference() + { + // Setup + var registry = new PersistenceRegistry(); + const string originalName = "Test"; + var surfaceLine = new RingtoetsPipingSurfaceLine + { + Name = originalName, + ReferenceLineIntersectionWorldPoint = new Point2D(1235.439, 49308.346) + }; + + // Call + SurfaceLineEntity entity = surfaceLine.Create(registry, 0); + + // Assert + Assert.AreNotSame(originalName, entity.Name, + "To create stable binary representations/fingerprints, it's really important that strings are not shared."); + Assert.AreEqual(originalName, entity.Name); + } + + [Test] public void Create_SurfaceLineWithGeometryWithoutCharacteristicPoints_ReturnSurfaceLineEntityWithPointEntities() { // Setup