Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/Builders/SoilLayer2DTest.cs =================================================================== diff -u -r49f905d3363336d44ef828259692644dcf5f9edc -r8ed108b83f575f6cb7dc1b89224606894a4bcb7a --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/Builders/SoilLayer2DTest.cs (.../SoilLayer2DTest.cs) (revision 49f905d3363336d44ef828259692644dcf5f9edc) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/Builders/SoilLayer2DTest.cs (.../SoilLayer2DTest.cs) (revision 8ed108b83f575f6cb7dc1b89224606894a4bcb7a) @@ -296,6 +296,34 @@ } [Test] + public void AsPipingSoilLayer_PropertiesSetWithNullMaterialName_MaterialNameEmptyInPipingSoilLayer() + { + // Setup + var layer = new SoilLayer2D + { + OuterLoop = new List + { + new Segment2D( + new Point2D(0, 1), + new Point2D(1, 1) + ), + new Segment2D( + new Point2D(1, 1), + new Point2D(0, 1) + ) + } + }; + double bottom; + + // Call + var result = layer.AsPipingSoilLayers(0, out bottom).ToArray(); + + // Assert + Assert.AreEqual(1, result.Length); + Assert.IsEmpty(result[0].MaterialName); + } + + [Test] public void AsPipingSoilLayers_WithOuterLoopNotIntersectingX_ReturnsEmptyCollectionWithMaxValueBottom() { // Setup