Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfiles/MacroStabilityInwardsStochasticSoilModelTransformerTest.cs =================================================================== diff -u -ra20f5008f39cfa4fd6f94572fd07a011f76609f4 -r57bc6a475f6cdd57b1a0ebf70cdf533014afd1ff --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfiles/MacroStabilityInwardsStochasticSoilModelTransformerTest.cs (.../MacroStabilityInwardsStochasticSoilModelTransformerTest.cs) (revision a20f5008f39cfa4fd6f94572fd07a011f76609f4) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfiles/MacroStabilityInwardsStochasticSoilModelTransformerTest.cs (.../MacroStabilityInwardsStochasticSoilModelTransformerTest.cs) (revision 57bc6a475f6cdd57b1a0ebf70cdf533014afd1ff) @@ -30,7 +30,6 @@ using Ringtoets.Common.IO.SoilProfile; using Ringtoets.Common.IO.SoilProfile.Schema; using Ringtoets.Common.IO.TestUtil; -using Ringtoets.Common.IO.TestUtil.Test; using Ringtoets.MacroStabilityInwards.Data; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; using Ringtoets.MacroStabilityInwards.IO.SoilProfiles; @@ -82,6 +81,26 @@ } [Test] + public void Transform_StochasticSoilModelWithoutGeometry_ThrowsImportedDataException() + { + // Setup + var stochasticSoilModel = new StochasticSoilModel("name", FailureMechanismType.Stability); + + var transformer = new MacroStabilityInwardsStochasticSoilModelTransformer(); + + // Call + TestDelegate test = () => transformer.Transform(stochasticSoilModel); + + // Assert + var exception = Assert.Throws(test); + + Exception innerException = exception.InnerException; + Assert.IsNotNull(innerException); + Assert.IsInstanceOf(innerException); + Assert.AreEqual(innerException.Message, exception.Message); + } + + [Test] public void Transform_ValidStochasticSoilModelWithSoilProfile1D_ReturnsExpectedMacroStabilityInwardsStochasticSoilModel() { // Setup