Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/Kernels/UpliftVan/UpliftVanKernelStub.cs =================================================================== diff -u -r0b21aa321e05e40b31eb5ace3adc8bb9cebea68d -r6d3eb061666110382fd3379594f4da711cc9ad1e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/Kernels/UpliftVan/UpliftVanKernelStub.cs (.../UpliftVanKernelStub.cs) (revision 0b21aa321e05e40b31eb5ace3adc8bb9cebea68d) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/Kernels/UpliftVan/UpliftVanKernelStub.cs (.../UpliftVanKernelStub.cs) (revision 6d3eb061666110382fd3379594f4da711cc9ad1e) @@ -23,6 +23,7 @@ using System.Collections.Generic; using Deltares.WTIStability; using Deltares.WTIStability.Data.Geo; +using Deltares.WTIStability.Data.Standard; using Ringtoets.MacroStabilityInwards.KernelWrapper.Kernels.UpliftVan; namespace Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Kernels.UpliftVan @@ -52,6 +53,11 @@ /// public bool ThrowExceptionOnValidate { get; set; } + /// + /// Indicator whether a validation result must be returned when performing the validation. + /// + public bool ReturnValidationResults { get; set; } + public SoilModel SoilModel { get; set; } public SoilProfile2D SoilProfile { get; set; } @@ -98,15 +104,26 @@ Calculated = true; } - public List Validate() + public List> Validate() { if (ThrowExceptionOnValidate) { throw new UpliftVanKernelWrapperException($"Message 1{Environment.NewLine}Message 2", new Exception()); } + if (ReturnValidationResults) + { + return new List> + { + new Tuple(ValidationResultType.Warning, "Validation Warning"), + new Tuple(ValidationResultType.Error, "Validation Error"), + new Tuple(ValidationResultType.Info, "Validation Info"), + new Tuple(ValidationResultType.Debug, "Validation Debug") + }; + } + Validated = true; - return new List(); + return new List>(); } } } \ No newline at end of file