Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/IssuesTests.cs =================================================================== diff -u -r7054 -r7055 --- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/IssuesTests.cs (.../IssuesTests.cs) (revision 7054) +++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/IssuesTests.cs (.../IssuesTests.cs) (revision 7055) @@ -34,39 +34,40 @@ public class IssuesTests { [Test] - [TestCase("DWP_1", "SegDWP_1",19, 81, 63, 35, 1.245)] - [TestCase("DWP_2", "SegDWP_2",12, 72, 61, 38, 1.398)] - [TestCase("DWP_6", "SegDWP_6",15, 79, 65, 45, 1.503)] - [TestCase("DWP_7", "SegDWP_7",9, 65, 57, 37, 1.264)] - [TestCase("DWP_8", "SegDWP_8",27, 117, 91, 46, 1.020)] - [TestCase("DWP_16", "SegDWP_16",26, 99, 74, 39, 0.713)] - [TestCase("DWP_17", "SegDWP_17",18, 81, 64, 33, 1.256)] - [TestCase("DWP_20", "SegDWP_20",25, 104, 80, 46, 1.523)] + [TestCase("DWP_1", "SegDWP_1", 19, 81, 63, 35, 1.245)] + [TestCase("DWP_2", "SegDWP_2", 12, 72, 61, 38, 1.398)] + [TestCase("DWP_6", "SegDWP_6", 15, 79, 65, 45, 1.503)] + [TestCase("DWP_7", "SegDWP_7", 9, 65, 57, 37, 1.264)] + [TestCase("DWP_8", "SegDWP_8", 27, 117, 91, 46, 1.020)] + [TestCase("DWP_16", "SegDWP_16", 26, 99, 74, 39, 0.713)] + [TestCase("DWP_17", "SegDWP_17", 18, 81, 64, 33, 1.256)] + [TestCase("DWP_20", "SegDWP_20", 25, 104, 80, 46, 1.523)] public void TestGeometryAndResultForIssueWithDwpsFromTutorial(string location, string segment, int surfaceCount, int curveCount, int pointCount, int surfaceLinePointCount, double safetyFactor) { const string calcDir = "TestGeometryAndResultForIssueWithDwpsFromTutorial"; const string tutorialStability2D = @"TestFiles\InputTutorialStability2D.xml"; TestGeometryAndResult(calcDir, tutorialStability2D, location, segment, surfaceCount, curveCount, pointCount, surfaceLinePointCount, safetyFactor); } - + [Test, Category(Categories.Slow)] - [TestCase("PU0021_87074-1_DWP002", "PU0021_87074-1_DWP002",14, 188, 175, 111, 0.659)] - [TestCase("PU0063_87074-1_DWP004", "PU0063_87074-1_DWP004",37, 296, 260, 181, 0.873)] - [TestCase("PU0181_87074-1_DWP012", "PU0181_87074-1_DWP012",12, 180, 169, 112, 0.809)] - [TestCase("PU0207_87074-1_DWP014", "PU0207_87074-1_DWP014",9, 148, 140, 110, 1.205)] + [TestCase("PU0021_87074-1_DWP002", "PU0021_87074-1_DWP002", 14, 188, 175, 111, 0.659)] + [TestCase("PU0063_87074-1_DWP004", "PU0063_87074-1_DWP004", 39, 300, 262, 182, 0.873)] + [TestCase("PU0181_87074-1_DWP012", "PU0181_87074-1_DWP012", 12, 180, 169, 112, 0.809)] + [TestCase("PU0207_87074-1_DWP014", "PU0207_87074-1_DWP014", 9, 148, 140, 110, 1.205)] public void TestGeometryAndResultForIssueMWDAM_3266(string location, string segment, int surfaceCount, int curveCount, int pointCount, int surfaceLinePointCount, double safetyFactor) { const string calcDir = "TestGeometryAndResultForIssueMWDAM_3266"; const string xmlInput = @"TestFiles\InputFileMWDAM-3266.xml"; TestGeometryAndResult(calcDir, xmlInput, location, segment, surfaceCount, curveCount, pointCount, surfaceLinePointCount, safetyFactor); } - + private static void TestGeometryAndResult(string calcDirectory, string xmlInput, string location, string segment, int surfaceCount, int curveCount, int pointCount, int surfaceLinePointCount, double safetyFactor) { - if (Directory.Exists(calcDirectory)) + if (Directory.Exists(calcDirectory)) { Directory.Delete(calcDirectory, true); // delete previous results } + Directory.CreateDirectory(calcDirectory); string inputString = File.ReadAllText(xmlInput);