Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/MacroStabilityOutwardsTests.cs =================================================================== diff -u -r4000 -r4052 --- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/MacroStabilityOutwardsTests.cs (.../MacroStabilityOutwardsTests.cs) (revision 4000) +++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/MacroStabilityOutwardsTests.cs (.../MacroStabilityOutwardsTests.cs) (revision 4052) @@ -25,37 +25,36 @@ using Deltares.DamEngine.Io.XmlOutput; using NUnit.Framework; -namespace Deltares.DamEngine.IntegrationTests.IntegrationTests +namespace Deltares.DamEngine.IntegrationTests.IntegrationTests; + +[TestFixture] +public class MacroStabilityOutwardsTests { - [TestFixture] - public class MacroStabilityOutwardsTests - { - private const double Tolerance = 0.0005; + private const double Tolerance = 0.0005; - [Test] - [TestCase("InputFileForStabOutsideBishopAutomaticGrid.xml", 1.810)] - [TestCase("InputFileForStabOutsideBishopSpecifiedGrid.xml", 1.813)] - public void TestDoesBishopOutwardsProduceResults(string fileName, double factorOfSafety) + [Test] + [TestCase("InputFileForStabOutsideBishopAutomaticGrid.xml", 1.810)] + [TestCase("InputFileForStabOutsideBishopSpecifiedGrid.xml", 1.813)] + public void TestDoesBishopOutwardsProduceResults(string fileName, double factorOfSafety) + { + // Expected results are taken as they came as calculated + const string calcDir = "TestOutStabBishop"; + if (Directory.Exists(calcDir)) { - // Expected results are taken as they came as calculated - const string calcDir = "TestOutStabBishop"; - if (Directory.Exists(calcDir)) - { - Directory.Delete(calcDir, true); // delete previous results - } + Directory.Delete(calcDir, true); // delete previous results + } - Directory.CreateDirectory(calcDir); + Directory.CreateDirectory(calcDir); - string fullFileName = @"TestFiles\" + fileName; - string inputString = File.ReadAllText(fullFileName); - var engineInterface = new EngineInterface(inputString); - Assert.IsNotNull(engineInterface.DamProjectData); - string outputString = engineInterface.Run(); + string fullFileName = @"TestFiles\" + fileName; + string inputString = File.ReadAllText(fullFileName); + var engineInterface = new EngineInterface(inputString); + Assert.IsNotNull(engineInterface.DamProjectData); + string outputString = engineInterface.Run(); - Assert.IsNotNull(outputString); - Output output = DamXmlSerialization.LoadOutputFromXmlString(outputString); - Assert.IsNotNull(output.Results.CalculationResults, "Results available when not expected"); - Assert.AreEqual(factorOfSafety, output.Results.CalculationResults[0].StabilityDesignResults.SafetyFactor, Tolerance); - } + Assert.IsNotNull(outputString); + Output output = DamXmlSerialization.LoadOutputFromXmlString(outputString); + Assert.IsNotNull(output.Results.CalculationResults, "Results available when not expected"); + Assert.AreEqual(factorOfSafety, output.Results.CalculationResults[0].StabilityDesignResults.SafetyFactor, Tolerance); } } \ No newline at end of file