Index: dam engine/trunk/src/Deltares.DamEngine.Interface/FillDamFromXmlInput.cs =================================================================== diff -u -r601 -r612 --- dam engine/trunk/src/Deltares.DamEngine.Interface/FillDamFromXmlInput.cs (.../FillDamFromXmlInput.cs) (revision 601) +++ dam engine/trunk/src/Deltares.DamEngine.Interface/FillDamFromXmlInput.cs (.../FillDamFromXmlInput.cs) (revision 612) @@ -93,6 +93,10 @@ { throw new NullReferenceException("No soils defined in the input"); } + if (input.Segments == null) + { + throw new NullReferenceException("No segments defined in the input"); + } } /// Index: dam engine/trunk/src/Deltares.DamEngine.Interface.Tests/PipingBlighTests.cs =================================================================== diff -u -r562 -r612 --- dam engine/trunk/src/Deltares.DamEngine.Interface.Tests/PipingBlighTests.cs (.../PipingBlighTests.cs) (revision 562) +++ dam engine/trunk/src/Deltares.DamEngine.Interface.Tests/PipingBlighTests.cs (.../PipingBlighTests.cs) (revision 612) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using System.IO; using NUnit.Framework; @@ -27,7 +28,7 @@ [TestFixture] public class PipingBlighTests { - [Test, Ignore("Work in progress")] + [Test] public void CanPerformBlighDesignPipingVoorbeeld1() { const string fileName = @"TestFiles\PipingVoorbeeld1_BlighInputFile.xml"; @@ -38,8 +39,8 @@ Assert.IsNotNull(outputString); } - [Test, Ignore("Work in progress")] - public void CanPerformBlighDesignRechterDiezedijk() + [Test, ExpectedException(typeof(NullReferenceException))] + public void CanNotPerformBlighDesignRechterDiezedijkForMissingSegments() { const string fileName = @"TestFiles\Rechter Diezedijk_BlighInputFile.xml"; string inputString = File.ReadAllText(fileName);