Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/StochasticSoilModelCollectionTest.cs =================================================================== diff -u -re1a8e98d60853beefbdb8c84e70f14165680ad7b -r92549be285a5082435e9625732cf33ff50cd60b9 --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/StochasticSoilModelCollectionTest.cs (.../StochasticSoilModelCollectionTest.cs) (revision e1a8e98d60853beefbdb8c84e70f14165680ad7b) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/StochasticSoilModelCollectionTest.cs (.../StochasticSoilModelCollectionTest.cs) (revision 92549be285a5082435e9625732cf33ff50cd60b9) @@ -40,6 +40,27 @@ } [Test] + public void AddRange_SurfaceLinesWithDifferentNames_AddsSurfaceLines() + { + // Setup + var stochasticSoilModelsToAdd = new[] + { + new StochasticSoilModel(5, "Model A", "segmentA"), + new StochasticSoilModel(6, "Model B", "segmentA") + }; + + var collection = new StochasticSoilModelCollection(); + const string expectedFilePath = "other/path"; + + // Call + collection.AddRange(stochasticSoilModelsToAdd, expectedFilePath); + + // Assert + Assert.AreEqual(expectedFilePath, collection.SourcePath); + CollectionAssert.AreEqual(stochasticSoilModelsToAdd, collection); + } + + [Test] public void AddRange_WithStochasticSoilModelsWithEqualNames_ThrowsArgumentException() { // Setup