Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/DebuggingTest.cs =================================================================== diff -u -r4000 -r4052 --- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/DebuggingTest.cs (.../DebuggingTest.cs) (revision 4000) +++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/DebuggingTest.cs (.../DebuggingTest.cs) (revision 4052) @@ -28,41 +28,40 @@ using Deltares.DamEngine.Io.XmlOutput; using NUnit.Framework; -namespace Deltares.DamEngine.IntegrationTests.IntegrationTests +namespace Deltares.DamEngine.IntegrationTests.IntegrationTests; + +[TestFixture] +public class DebuggingTest { - [TestFixture] - public class DebuggingTest - { - private const string mapTestFiles = @"TestFiles\"; + private const string mapTestFiles = @"TestFiles\"; - /// Debugs the with XML input file. - /// Usage: - /// 1) Generate the input XML file in the DAM UI - /// 2) Copy the file to src\Deltares.DamEngine.IntegrationTests\TestFiles\InputForDebugging.xml - /// 3) Run the test in Debugging mode - /// - [Test, Ignore("This test is only used for debugging XML files generated by Dam UI")] - public void DebugWithXmlInputFile() + /// Debugs the with XML input file. + /// Usage: + /// 1) Generate the input XML file in the DAM UI + /// 2) Copy the file to src\Deltares.DamEngine.IntegrationTests\TestFiles\InputForDebugging.xml + /// 3) Run the test in Debugging mode + /// + [Test, Ignore("This test is only used for debugging XML files generated by Dam UI")] + public void DebugWithXmlInputFile() + { + const string inputFilename = "InputForDebugging.xml"; // or put your own name here; + string fullInputFilename = Path.Combine(mapTestFiles, inputFilename); + Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; + string inputString = File.ReadAllText(fullInputFilename); + var engineInterface = new EngineInterface(inputString); + Assert.IsNotNull(engineInterface.DamProjectData); + 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); + Output output = DamXmlSerialization.LoadOutputFromXmlString(outputString); + if (engineInterface.DamProjectData.DamProjectType == DamProjectType.Design) { - const string inputFilename = "InputForDebugging.xml"; // or put your own name here; - string fullInputFilename = Path.Combine(mapTestFiles, inputFilename); - Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; - string inputString = File.ReadAllText(fullInputFilename); - var engineInterface = new EngineInterface(inputString); - Assert.IsNotNull(engineInterface.DamProjectData); - 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); - Output output = DamXmlSerialization.LoadOutputFromXmlString(outputString); - if (engineInterface.DamProjectData.DamProjectType == DamProjectType.Design) - { - Assert.AreNotEqual(null, output.Results.CalculationResults); - } - else - { - Assert.AreNotEqual(null, output.Results.OperationalOutputTimeSeries); - } + Assert.AreNotEqual(null, output.Results.CalculationResults); } + else + { + Assert.AreNotEqual(null, output.Results.OperationalOutputTimeSeries); + } } } \ No newline at end of file