Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapperTests.cs =================================================================== diff -u -r6673 -r6688 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapperTests.cs (.../MacroStabilityInwardsKernelWrapperTests.cs) (revision 6673) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapperTests.cs (.../MacroStabilityInwardsKernelWrapperTests.cs) (revision 6688) @@ -51,14 +51,20 @@ private readonly string inputXmlForDamEngine = Path.Combine(testFolder, "StabilityDesign1Dbased.xml"); [Test] - [TestCase(0.8, true, false, PrepareResult.NotRelevant)] + [TestCase(0.8, true, false, PrepareResult.NoUplift)] + [TestCase(1.4, true, false, PrepareResult.NotRelevant, false)] [TestCase(1.4, true, true, PrepareResult.Successful)] [TestCase(1.2, false, false, PrepareResult.Failed)] - public void TestPrepare(double upliftCriterionStability, bool isInputValid, bool expectedIsUplift, PrepareResult expectedPrepareResult) + public void TestPrepare(double upliftCriterionStability, bool isInputValid, bool expectedIsUplift, + PrepareResult expectedPrepareResult, bool isStability = true) { // Setup DamKernelInput kernelInput = CreateDamKernelInputForTest(StabilityModelType.UpliftVan); kernelInput.Location.CurrentScenario.UpliftCriterionStability = upliftCriterionStability; + if (!isStability) + { + kernelInput.SubSoilScenario.SegmentFailureMechanismType = SegmentFailureMechanismType.Piping; + } var kernelWrapper = new MacroStabilityInwardsKernelWrapper { FailureMechanismParametersMStab = new FailureMechanismParametersMStab Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapper.cs =================================================================== diff -u -r6680 -r6688 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapper.cs (.../MacroStabilityInwardsKernelWrapper.cs) (revision 6680) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapper.cs (.../MacroStabilityInwardsKernelWrapper.cs) (revision 6688) @@ -122,8 +122,7 @@ if (FailureMechanismParametersMStab.MStabParameters.Model == StabilityModelType.UpliftVan && !upliftSituation.IsUplift) { - //return PrepareResult.NoUplift; - return PrepareResult.NotRelevant; + return PrepareResult.NoUplift; } FailureMechanismParametersMStab.MStabParameters.Model = model;