Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/DebuggingTest.cs =================================================================== diff -u -r3893 -r4000 --- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/DebuggingTest.cs (.../DebuggingTest.cs) (revision 3893) +++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/DebuggingTest.cs (.../DebuggingTest.cs) (revision 4000) @@ -19,11 +19,13 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System.Globalization; using System.IO; using System.Threading; using Deltares.DamEngine.Data.General; using Deltares.DamEngine.Interface; using Deltares.DamEngine.Io; +using Deltares.DamEngine.Io.XmlOutput; using NUnit.Framework; namespace Deltares.DamEngine.IntegrationTests.IntegrationTests @@ -32,6 +34,7 @@ public class DebuggingTest { private const string mapTestFiles = @"TestFiles\"; + /// Debugs the with XML input file. /// Usage: /// 1) Generate the input XML file in the DAM UI @@ -43,15 +46,15 @@ { const string inputFilename = "InputForDebugging.xml"; // or put your own name here; string fullInputFilename = Path.Combine(mapTestFiles, inputFilename); - Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; + Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; string inputString = File.ReadAllText(fullInputFilename); - EngineInterface engineInterface = new EngineInterface(inputString); + var engineInterface = new EngineInterface(inputString); Assert.IsNotNull(engineInterface.DamProjectData); - var result = engineInterface.Validate(); + string result = engineInterface.Validate(); Assert.IsTrue(result == null, "Validation must succeed but does not, see output xml in debugger"); string outputString = engineInterface.Run(); File.WriteAllText("Output.xml", outputString); - var output = DamXmlSerialization.LoadOutputFromXmlString(outputString); + Output output = DamXmlSerialization.LoadOutputFromXmlString(outputString); if (engineInterface.DamProjectData.DamProjectType == DamProjectType.Design) { Assert.AreNotEqual(null, output.Results.CalculationResults); @@ -61,6 +64,5 @@ Assert.AreNotEqual(null, output.Results.OperationalOutputTimeSeries); } } - } } \ No newline at end of file