Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil.Test/RingtoetsProjectTestHelperTest.cs =================================================================== diff -u -rc0532d07766ecad2566f7cfa4a97a9aeb6e8540c -r0574db37f4ec08859a15cc8511a8c7b13ce76af6 --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil.Test/RingtoetsProjectTestHelperTest.cs (.../RingtoetsProjectTestHelperTest.cs) (revision c0532d07766ecad2566f7cfa4a97a9aeb6e8540c) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil.Test/RingtoetsProjectTestHelperTest.cs (.../RingtoetsProjectTestHelperTest.cs) (revision 0574db37f4ec08859a15cc8511a8c7b13ce76af6) @@ -493,10 +493,24 @@ Assert.IsFalse(designWaterLevelCalculation.InputParameters.ShouldIllustrationPointsBeCalculated); AssertHydraulicBoundaryLocationDesignWaterLevelCalculation(designWaterLevelCalculation); + designWaterLevelCalculation = hydraulicBoundaryLocation.DesignWaterLevelCalculation3; + Assert.IsFalse(designWaterLevelCalculation.InputParameters.ShouldIllustrationPointsBeCalculated); + AssertHydraulicBoundaryLocationDesignWaterLevelCalculation(designWaterLevelCalculation); + + AssertSimpleHydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation.DesignWaterLevelCalculation2); + AssertSimpleHydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation.DesignWaterLevelCalculation4); + HydraulicBoundaryLocationCalculation waveHeightCalculation = hydraulicBoundaryLocation.WaveHeightCalculation1; Assert.IsFalse(waveHeightCalculation.InputParameters.ShouldIllustrationPointsBeCalculated); AssertHydraulicBoundaryLocationWaveHeightCalculation(waveHeightCalculation); + waveHeightCalculation = hydraulicBoundaryLocation.WaveHeightCalculation3; + Assert.IsFalse(waveHeightCalculation.InputParameters.ShouldIllustrationPointsBeCalculated); + AssertHydraulicBoundaryLocationWaveHeightCalculation(waveHeightCalculation); + + AssertSimpleHydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation.WaveHeightCalculation2); + AssertSimpleHydraulicBoundaryLocationCalculation(hydraulicBoundaryLocation.WaveHeightCalculation4); + HydraulicBoundaryLocation hydraulicBoundaryLocationWithIllustrationPoints = hydraulicBoundaryDatabase.Locations[1]; Assert.AreEqual(13002, hydraulicBoundaryLocationWithIllustrationPoints.Id); Assert.AreEqual("test2", hydraulicBoundaryLocationWithIllustrationPoints.Name); @@ -509,13 +523,37 @@ AssertHydraulicBoundaryLocationDesignWaterLevelCalculation(designWaterLevelCalculationWithIllustrationPoints); AssertGeneralResultTopLevelSubMechanismIllustrationPoint(designWaterLevelCalculationWithIllustrationPoints.Output.GeneralResult); + designWaterLevelCalculationWithIllustrationPoints = + hydraulicBoundaryLocationWithIllustrationPoints.DesignWaterLevelCalculation3; + Assert.IsTrue(designWaterLevelCalculationWithIllustrationPoints.InputParameters.ShouldIllustrationPointsBeCalculated); + AssertHydraulicBoundaryLocationDesignWaterLevelCalculation(designWaterLevelCalculationWithIllustrationPoints); + AssertGeneralResultTopLevelSubMechanismIllustrationPoint(designWaterLevelCalculationWithIllustrationPoints.Output.GeneralResult); + + AssertSimpleHydraulicBoundaryLocationCalculation(hydraulicBoundaryLocationWithIllustrationPoints.DesignWaterLevelCalculation2); + AssertSimpleHydraulicBoundaryLocationCalculation(hydraulicBoundaryLocationWithIllustrationPoints.DesignWaterLevelCalculation4); + HydraulicBoundaryLocationCalculation waveHeightCalculationWithIllustrationPoints = hydraulicBoundaryLocationWithIllustrationPoints.WaveHeightCalculation1; Assert.IsTrue(waveHeightCalculationWithIllustrationPoints.InputParameters.ShouldIllustrationPointsBeCalculated); AssertHydraulicBoundaryLocationWaveHeightCalculation(waveHeightCalculationWithIllustrationPoints); AssertGeneralResultTopLevelSubMechanismIllustrationPoint(waveHeightCalculationWithIllustrationPoints.Output.GeneralResult); + + waveHeightCalculationWithIllustrationPoints = + hydraulicBoundaryLocationWithIllustrationPoints.WaveHeightCalculation3; + Assert.IsTrue(waveHeightCalculationWithIllustrationPoints.InputParameters.ShouldIllustrationPointsBeCalculated); + AssertHydraulicBoundaryLocationWaveHeightCalculation(waveHeightCalculationWithIllustrationPoints); + AssertGeneralResultTopLevelSubMechanismIllustrationPoint(waveHeightCalculationWithIllustrationPoints.Output.GeneralResult); + + AssertSimpleHydraulicBoundaryLocationCalculation(hydraulicBoundaryLocationWithIllustrationPoints.WaveHeightCalculation2); + AssertSimpleHydraulicBoundaryLocationCalculation(hydraulicBoundaryLocationWithIllustrationPoints.WaveHeightCalculation4); } + private static void AssertSimpleHydraulicBoundaryLocationCalculation(HydraulicBoundaryLocationCalculation calculation) + { + Assert.IsFalse(calculation.InputParameters.ShouldIllustrationPointsBeCalculated); + Assert.IsFalse(calculation.HasOutput); + } + private static void AssertHydraulicBoundaryLocationDesignWaterLevelCalculation(HydraulicBoundaryLocationCalculation calculation) { HydraulicBoundaryLocationOutput output = calculation.Output; Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs =================================================================== diff -u -r53fa30076e4e6576728f01a8dfff7314889ddb3a -r0574db37f4ec08859a15cc8511a8c7b13ce76af6 --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision 53fa30076e4e6576728f01a8dfff7314889ddb3a) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectTestHelper.cs (.../RingtoetsProjectTestHelper.cs) (revision 0574db37f4ec08859a15cc8511a8c7b13ce76af6) @@ -346,9 +346,19 @@ double.NaN, double.NaN, double.NaN, CalculationConvergence.CalculatedConverged, null) }, + DesignWaterLevelCalculation3 = + { + Output = new HydraulicBoundaryLocationOutput(12.4, double.NaN, + double.NaN, double.NaN, + double.NaN, CalculationConvergence.CalculatedConverged, null) + }, WaveHeightCalculation1 = { Output = new HydraulicBoundaryLocationOutput(2.4, 0, 0, 0, 0, CalculationConvergence.CalculatedNotConverged, null) + }, + WaveHeightCalculation3 = + { + Output = new HydraulicBoundaryLocationOutput(2.4, 0, 0, 0, 0, CalculationConvergence.CalculatedNotConverged, null) } }; @@ -368,13 +378,29 @@ }, Output = designWaterLevelOutput }, + DesignWaterLevelCalculation3 = + { + InputParameters = + { + ShouldIllustrationPointsBeCalculated = true + }, + Output = designWaterLevelOutput + }, WaveHeightCalculation1 = { InputParameters = { ShouldIllustrationPointsBeCalculated = true }, Output = waveHeightOutput + }, + WaveHeightCalculation3 = + { + InputParameters = + { + ShouldIllustrationPointsBeCalculated = true + }, + Output = waveHeightOutput } }; }