Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/Common/PlLinesHelperTests.cs =================================================================== diff -u -r6851 -r6936 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/Common/PlLinesHelperTests.cs (.../PlLinesHelperTests.cs) (revision 6851) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/Common/PlLinesHelperTests.cs (.../PlLinesHelperTests.cs) (revision 6936) @@ -50,9 +50,10 @@ var riverLevel = 1.0; var timeStepDateTime = new DateTime(); - PlLines plLines = PlLinesHelper.CreatePlLinesForPiping(timeStepDateTime, location, soilProfile1D, riverLevel, out _); + PlLines plLines = PlLinesHelper.CreatePlLinesForPiping(timeStepDateTime, location, soilProfile1D, riverLevel, out string warningMessage); Assert.Multiple(() => { + Assert.That(warningMessage, Is.Null); Assert.That(plLines.PlLineCount, Is.EqualTo(4)); Assert.That(plLines.Lines[PlLineType.Pl1].Points, Has.Count.EqualTo(8)); Assert.That(new PlLinePoint(0.000, 1.000).LocationEquals(plLines.Lines[PlLineType.Pl1].Points[0]), Is.True); @@ -90,9 +91,10 @@ var riverLevel = 1.0; var timeStepDateTime = new DateTime(); - PlLines plLines = PlLinesHelper.CreatePlLinesForPiping(timeStepDateTime, location, soilProfile1D, riverLevel, out _); + PlLines plLines = PlLinesHelper.CreatePlLinesForPiping(timeStepDateTime, location, soilProfile1D, riverLevel, out string warningMessage); Assert.Multiple(() => { + Assert.That(warningMessage, Is.Null); Assert.That(plLines.PlLineCount, Is.EqualTo(4)); Assert.That(plLines.Lines[PlLineType.Pl1].Points, Has.Count.EqualTo(8)); Assert.That(new PlLinePoint(0.000, 1.000).LocationEquals(plLines.Lines[PlLineType.Pl1].Points[0]), Is.True); @@ -141,9 +143,10 @@ var riverLevel = 0.5; var timeStepDateTime = new DateTime(); - PlLines plLines = PlLinesHelper.CreatePlLinesForPiping(timeStepDateTime, location, soilProfile1D, riverLevel, out _); + PlLines plLines = PlLinesHelper.CreatePlLinesForPiping(timeStepDateTime, location, soilProfile1D, riverLevel, out string warningMessage); Assert.Multiple(() => { + Assert.That(warningMessage, Is.Null); Assert.That(plLines.PlLineCount, Is.EqualTo(4)); Assert.That(plLines.Lines[PlLineType.Pl1].Points, Has.Count.EqualTo(8)); Assert.That(new PlLinePoint(0.000, 0.500).LocationEquals(plLines.Lines[PlLineType.Pl1].Points[0]), Is.True); Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/WtiPipingBligh/WtiPipingBlighKernelWrapper.cs =================================================================== diff -u -r6895 -r6936 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/WtiPipingBligh/WtiPipingBlighKernelWrapper.cs (.../WtiPipingBlighKernelWrapper.cs) (revision 6895) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/WtiPipingBligh/WtiPipingBlighKernelWrapper.cs (.../WtiPipingBlighKernelWrapper.cs) (revision 6936) @@ -69,8 +69,7 @@ FoSp = defaultMaxReturnValue }; kernelDataOutput = wtiPipingBlighOutput; - if (damKernelInput.SubSoilScenario.SegmentFailureMechanismType != null && - damKernelInput.SubSoilScenario.SegmentFailureMechanismType.Value.In(SegmentFailureMechanismType.Piping, SegmentFailureMechanismType.All)) + if (damKernelInput.SubSoilScenario.SegmentFailureMechanismType!.Value.In(SegmentFailureMechanismType.Piping, SegmentFailureMechanismType.All)) { try {