Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/SoilProfile/PipingStochasticSoilModelTest.cs =================================================================== diff -u -r6b60edb4d7f04f83c74089d70a72c4f79ed413dd -r5e5695f9f466a0ab54a59b61879f5d7a66e6ffb1 --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/SoilProfile/PipingStochasticSoilModelTest.cs (.../PipingStochasticSoilModelTest.cs) (revision 6b60edb4d7f04f83c74089d70a72c4f79ed413dd) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/SoilProfile/PipingStochasticSoilModelTest.cs (.../PipingStochasticSoilModelTest.cs) (revision 5e5695f9f466a0ab54a59b61879f5d7a66e6ffb1) @@ -131,6 +131,27 @@ } [Test] + public void Constructor_StochasticSoilProfilesEmpty_ThrowsArgumentException() + { + // Setup + var random = new Random(21); + const string name = "name"; + var geometry = new[] + { + new Point2D(random.NextDouble(), random.NextDouble()) + }; + + // Call + TestDelegate call = () => new PipingStochasticSoilModel(name, + geometry, + Enumerable.Empty()); + + // Assert + string expectedMessage = $"Er zijn geen ondergrondschematisaties gevonden in het stochastische ondergrondmodel '{name}'."; + TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, expectedMessage); + } + + [Test] public void Update_WithNullModel_ThrowsArgumentNullException() { // Setup