Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/Kernels/UpliftVan/UpliftVanKernelStub.cs
===================================================================
diff -u -r98893373912f751309ca68fa432e3b9abd9ec2ce -r0b21aa321e05e40b31eb5ace3adc8bb9cebea68d
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/Kernels/UpliftVan/UpliftVanKernelStub.cs (.../UpliftVanKernelStub.cs) (revision 98893373912f751309ca68fa432e3b9abd9ec2ce)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/Kernels/UpliftVan/UpliftVanKernelStub.cs (.../UpliftVanKernelStub.cs) (revision 0b21aa321e05e40b31eb5ace3adc8bb9cebea68d)
@@ -20,6 +20,7 @@
// All rights reserved.
using System;
+using System.Collections.Generic;
using Deltares.WTIStability;
using Deltares.WTIStability.Data.Geo;
using Ringtoets.MacroStabilityInwards.KernelWrapper.Kernels.UpliftVan;
@@ -37,10 +38,20 @@
public bool Calculated { get; private set; }
///
+ /// Gets a value indicating whether was called or not.
+ ///
+ public bool Validated { get; private set; }
+
+ ///
/// Indicator whether an exception must be thrown when performing the calculation.
///
public bool ThrowExceptionOnCalculate { get; set; }
+ ///
+ /// Indicator whether an exception must be thrown when performing the validation.
+ ///
+ public bool ThrowExceptionOnValidate { get; set; }
+
public SoilModel SoilModel { get; set; }
public SoilProfile2D SoilProfile { get; set; }
@@ -86,5 +97,16 @@
Calculated = true;
}
+
+ public List Validate()
+ {
+ if (ThrowExceptionOnValidate)
+ {
+ throw new UpliftVanKernelWrapperException($"Message 1{Environment.NewLine}Message 2", new Exception());
+ }
+
+ Validated = true;
+ return new List();
+ }
}
}
\ No newline at end of file