Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/MacroStabilityInwardsCalculatorResultTest.cs =================================================================== diff -u -r171b5961353dab92f39de485f07a2f495b01a89d -r8df85402c4de8eb335483bcda5e4ff23ce0dd5ef --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/MacroStabilityInwardsCalculatorResultTest.cs (.../MacroStabilityInwardsCalculatorResultTest.cs) (revision 171b5961353dab92f39de485f07a2f495b01a89d) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/MacroStabilityInwardsCalculatorResultTest.cs (.../MacroStabilityInwardsCalculatorResultTest.cs) (revision 8df85402c4de8eb335483bcda5e4ff23ce0dd5ef) @@ -31,6 +31,36 @@ public class MacroStabilityInwardsCalculatorResultTest { [Test] + public void Constructor_SlidingCurveNull_ThrowsArgumentNullException() + { + // Setup + var upliftVanCalculationGrid = new MacroStabilityInwardsUpliftVanCalculationGridResult(MacroStabilityInwardsGridResultTestFactory.Create(), + MacroStabilityInwardsGridResultTestFactory.Create(), + new double[0]); + + // Call + TestDelegate call = () => new MacroStabilityInwardsCalculatorResult(null, upliftVanCalculationGrid, new MacroStabilityInwardsCalculatorResult.ConstructionProperties()); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("slidingCurve", exception.ParamName); + } + + [Test] + public void Constructor_UpliftVanCalculationGridNull_ThrowsArgumentNullException() + { + // Setup + MacroStabilityInwardsSlidingCurveResult curve = MacroStabilityInwardsSlidingCurveResultTestFactory.Create(); + + // Call + TestDelegate call = () => new MacroStabilityInwardsCalculatorResult(curve, null, new MacroStabilityInwardsCalculatorResult.ConstructionProperties()); ; + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("upliftVanCalculationGrid", exception.ParamName); + } + + [Test] public void Constructor_ConstructionPropertiesNull_ThrowsArgumentNullException() { // Setup