Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/SoilProfile/MacroStabilityInwardsSoilProfile2DTest.cs =================================================================== diff -u -reb6d3b69267f3ae2870b25679793bbc0099338cd -r228ee54da56eded41bf81bba88cf54371f11d2bb --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/SoilProfile/MacroStabilityInwardsSoilProfile2DTest.cs (.../MacroStabilityInwardsSoilProfile2DTest.cs) (revision eb6d3b69267f3ae2870b25679793bbc0099338cd) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/SoilProfile/MacroStabilityInwardsSoilProfile2DTest.cs (.../MacroStabilityInwardsSoilProfile2DTest.cs) (revision 228ee54da56eded41bf81bba88cf54371f11d2bb) @@ -31,6 +31,7 @@ using NUnit.Framework; using Ringtoets.Common.Data.Probabilistics; using Ringtoets.MacroStabilityInwards.Data.SoilProfile; +using Ringtoets.MacroStabilityInwards.Data.TestUtil.SoilProfile; using Ringtoets.MacroStabilityInwards.Primitives; using Ringtoets.MacroStabilityInwards.Primitives.TestUtil; @@ -73,7 +74,7 @@ { // Call TestDelegate test = () => new MacroStabilityInwardsSoilProfile2D(string.Empty, - new Collection(), + Enumerable.Empty(), Enumerable.Empty()); // Assert @@ -86,11 +87,15 @@ { // Call TestDelegate test = () => new MacroStabilityInwardsSoilProfile2D(null, - new Collection(), + new[] + { + MacroStabilityInwardsSoilLayer2DTestFactory.CreateMacroStabilityInwardsSoilLayer2D() + }, Enumerable.Empty()); // Assert - Assert.Throws(test); + var exception = Assert.Throws(test); + Assert.AreEqual("value", exception.ParamName); } [Test]