Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/MacroStabilityInwardsTests.cs =================================================================== diff -u -r7017 -r7064 --- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/MacroStabilityInwardsTests.cs (.../MacroStabilityInwardsTests.cs) (revision 7017) +++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/MacroStabilityInwardsTests.cs (.../MacroStabilityInwardsTests.cs) (revision 7064) @@ -508,8 +508,11 @@ { Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; const string analysisType = "NoAdaption"; - // Test to see if calculation does NOT work in this case as it must fail with water level above dike top. - Output output = GetOutputStringForProject(analysisType, false); + // Test to see if calculation does NOT work (and return Input invalid) in this case as it must fail with water level above dike top. + Output output = GetOutputStringForProject(analysisType, true); + + Assert.That(output.Results.CalculationResults, Has.Length.EqualTo(1)); + Assert.That(output.Results.CalculationResults[0].CalculationResult, Is.EqualTo(6)); Assert.That(output.Results.CalculationMessages, Has.Length.EqualTo(2)); Assert.Multiple(() => @@ -1024,7 +1027,7 @@ }); } - private static Output GetOutputStringForProject(string analysisType, bool isSuccessful) + private static Output GetOutputStringForProject(string analysisType, bool areResultsExpected) { // Create xml with Tutorial project // Select location DWP_1 @@ -1050,7 +1053,7 @@ inputString = XmlAdapter.ChangeValueInXml(inputString, "RiverLevel", "5.5"); inputString = XmlAdapter.ChangeValueInXml(inputString, "RequiredSafetyFactorStabilityInnerSlope", "1.2"); - return GeneralHelper.RunAfterInputValidation(inputString, isSuccessful); + return GeneralHelper.RunAfterInputValidation(inputString, areResultsExpected); } private static void CheckCalculationResults(DesignResult output, string locationName, string profileName, DesignResultStabilityDesignResultsStabilityModelType model, double safetyFactor, bool isUplift, CalculationResult result)