Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/OperationalStabilityProfile1DTests.cs =================================================================== diff -u -r5971 -r5976 --- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/OperationalStabilityProfile1DTests.cs (.../OperationalStabilityProfile1DTests.cs) (revision 5971) +++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/OperationalStabilityProfile1DTests.cs (.../OperationalStabilityProfile1DTests.cs) (revision 5976) @@ -75,24 +75,24 @@ yield return new TestCaseData( // This is the case that all values are taken from the location data new SensorConfiguration() - { - SourceTypePl1OuterWaterLevel = sourceTypeLocationData, - Pl1OuterWaterLevel = -0.1, - SourceTypePl1PlLineOffsetBelowDikeTopAtRiver = sourceTypeLocationData, - Pl1PlLineOffsetBelowDikeTopAtRiver = 1.1, - SourceTypePl1PlLineOffsetBelowDikeTopAtPolder = sourceTypeLocationData, - Pl1PlLineOffsetBelowDikeTopAtPolder = 1.2, - SourceTypePl1PlLineOffsetBelowShoulderBaseInside = sourceTypeIgnore, - Pl1PlLineOffsetBelowShoulderBaseInside = 0.0, - SourceTypePl1PlLineOffsetBelowDikeToeAtPolder = sourceTypeLocationData, - Pl1PlLineOffsetBelowDikeToeAtPolder = 1.4, - SourceTypePl1PolderLevel = sourceTypeLocationData, - PlPolderLevel = -2.0, - SourceTypePl3 = sourceTypeLocationData, - HeadPl3 = -3.0, - SourceTypePl4 = sourceTypeLocationData, - HeadPl4 = 0.0 - }, + { + SourceTypePl1OuterWaterLevel = sourceTypeLocationData, + Pl1OuterWaterLevel = -0.1, + SourceTypePl1PlLineOffsetBelowDikeTopAtRiver = sourceTypeLocationData, + Pl1PlLineOffsetBelowDikeTopAtRiver = 1.1, + SourceTypePl1PlLineOffsetBelowDikeTopAtPolder = sourceTypeLocationData, + Pl1PlLineOffsetBelowDikeTopAtPolder = 1.2, + SourceTypePl1PlLineOffsetBelowShoulderBaseInside = sourceTypeIgnore, + Pl1PlLineOffsetBelowShoulderBaseInside = 0.0, + SourceTypePl1PlLineOffsetBelowDikeToeAtPolder = sourceTypeLocationData, + Pl1PlLineOffsetBelowDikeToeAtPolder = 1.4, + SourceTypePl1PolderLevel = sourceTypeLocationData, + PlPolderLevel = -2.0, + SourceTypePl3 = sourceTypeLocationData, + HeadPl3 = -3.0, + SourceTypePl4 = sourceTypeLocationData, + HeadPl4 = 0.0 + }, new PlLinePoints() { Points = @@ -128,7 +128,70 @@ Z = -2.0 // Expected Z-value is location data Polderlevel of 'Purmer_PU0042+00_K': -2.0 } ] - }); + }).SetName("Only location data"); + yield return new TestCaseData( + // This is the case that all values are taken from the sensor data + new SensorConfiguration() + { + SourceTypePl1OuterWaterLevel = sourceTypeSensor, + Pl1OuterWaterLevel = -0.1, + SourceTypePl1PlLineOffsetBelowDikeTopAtRiver = sourceTypeIgnore, + Pl1PlLineOffsetBelowDikeTopAtRiver = 1.1, + SourceTypePl1PlLineOffsetBelowDikeTopAtPolder = sourceTypeIgnore, + Pl1PlLineOffsetBelowDikeTopAtPolder = 1.2, + SourceTypePl1PlLineOffsetBelowShoulderBaseInside = sourceTypeIgnore, + Pl1PlLineOffsetBelowShoulderBaseInside = 0.0, + SourceTypePl1PlLineOffsetBelowDikeToeAtPolder = sourceTypeIgnore, + Pl1PlLineOffsetBelowDikeToeAtPolder = 1.4, + SourceTypePl1PolderLevel = sourceTypeSensor, + PlPolderLevel = -2.0, + SourceTypePl3 = sourceTypeIgnore, + HeadPl3 = -3.0, + SourceTypePl4 = sourceTypeIgnore, + HeadPl4 = 0.0 + }, + new PlLinePoints() + { + Points = + [ + new Point2DType + { + // Pl1Left amd Waterlevel sensor MPN-AS-27 + X = 0.0, // Expected X-value is leftmost point.X + Z = -0.2 // Expected Z-value is the value of the first timestep of sensor: -0.2 + }, + new Point2DType + { + // Sensor RFT_R52_0110_45m_BuKr + X = 18.305, // Expected X-value is location sensor: 18.305 + Z = 0.24 // Expected Z-value is the value of the first timestep of sensor RFT_R52_0110_45m_BuKr: -0.2 + }, + new Point2DType + { + // Sensor RFT_R52_0110_45m_BiKr + X = 22.563, // Expected X-value is location of sensor = 22.563 + Z = 0.29 // Expected Z-value is the value of the first timestep of sensor: -0.29 + }, + new Point2DType + { + // Sensor RFT_R52_0110_45m_InstBrm + X = 30.225, // Expected X-value is location of sensor: 30.225 + Z = -2.35 // Expected Z-value is the value of the first timestep of sensor: -2.35 + }, + new Point2DType + { + // Sensor RFT_R52_0110_45m_BiT + X = 36.185, // Expected X-value is location of sensor: 30.225 + Z = -3.23 // Expected Z-value is the value of the first timestep of sensor: -3.23 + }, + new Point2DType + { + // Pl1Right + X = 57.896, // Expected X-value is rightmost point.X + Z = -2.0 // Expected Z-value is location data Polderlevel of 'Purmer_PU0042+00_K': -2.0 + } + ] + }).SetName("Only sensor data"); } }