Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Exporters/StabilityPointStructuresCalculationConfigurationExporterTest.cs =================================================================== diff -u -re4ac9527c2d9c837a35ca5195b7774612d72f750 -rae7570ed93ecb4cd13b6c8ce24dc82a7cb9e4557 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Exporters/StabilityPointStructuresCalculationConfigurationExporterTest.cs (.../StabilityPointStructuresCalculationConfigurationExporterTest.cs) (revision e4ac9527c2d9c837a35ca5195b7774612d72f750) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Exporters/StabilityPointStructuresCalculationConfigurationExporterTest.cs (.../StabilityPointStructuresCalculationConfigurationExporterTest.cs) (revision ae7570ed93ecb4cd13b6c8ce24dc82a7cb9e4557) @@ -92,9 +92,50 @@ CreateCalculationWithStructure() }) .SetName("Calculation configuration with a structure set"); + yield return new TestCaseData("configurationWithStructureAndLoadSchematizationTypeLinear", new[] + { + CreateCalculationWithStructureAndLoadSchematizationLinearAndInflowModelFloodedCulvert() + }) + .SetName("Calculation configuration with LoadSchematizationType set to Linear and InflowModelType to FloodedCulvert"); + + + yield return new TestCaseData("configurationWithStructureAndLoadSchematizationTypeQadratic", new[] + { + CreateCalculationWithStructureAndLoadSchematizationQadraticAndInflowModelLowSill() + }) + .SetName("Calculation configuration with LoadSchematizationType set to Qadratic and InflowModelType to LowSil"); } } + + private static StructuresCalculation CreateCalculationWithStructureAndLoadSchematizationLinearAndInflowModelFloodedCulvert() + { + return new StructuresCalculation + { + Name = "with LoadSchematizationType set to Linear and InflowModelType to FloodedCulvert", + InputParameters = + { + Structure = new TestStabilityPointStructure("kunstwerk1"), + LoadSchematizationType = LoadSchematizationType.Linear, + InflowModelType = StabilityPointStructureInflowModelType.FloodedCulvert + } + }; + } + + private static StructuresCalculation CreateCalculationWithStructureAndLoadSchematizationQadraticAndInflowModelLowSill() + { + return new StructuresCalculation + { + Name = "with LoadSchematizationType set to Qadratic and InflowModelType to LowSil", + InputParameters = + { + Structure = new TestStabilityPointStructure("kunstwerk1"), + LoadSchematizationType = LoadSchematizationType.Quadratic, + InflowModelType = StabilityPointStructureInflowModelType.LowSill + } + }; + } + [Test] [TestCaseSource(nameof(Calculations))] public void Export_ValidData_ReturnTrueAndWritesFile(string fileName, ICalculationBase[] calculations) Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/test-data/StabilityPointStructuresCalculationConfigurationExporter/configurationWithStructureAndLoadSchematizationTypeLinear.xml =================================================================== diff -u --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/test-data/StabilityPointStructuresCalculationConfigurationExporter/configurationWithStructureAndLoadSchematizationTypeLinear.xml (revision 0) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/test-data/StabilityPointStructuresCalculationConfigurationExporter/configurationWithStructureAndLoadSchematizationTypeLinear.xml (revision ae7570ed93ecb4cd13b6c8ce24dc82a7cb9e4557) @@ -0,0 +1,103 @@ + + + + kunstwerk1 + 123.46 + 1 + 555.55 + 1 + 0.55 + verdronkenkoker + lineair + 42 + 0.55 + 555.55 + 9.81 + + + 890.12 + 0.89 + + + 456.79 + 0.46 + + + 234.57 + 0.23 + + + 789.01 + 0.79 + + + 1.1 + + + 345.68 + 0.35 + + + 6 + + + 901.23 + 0.9 + + + 234.57 + + + 901.23 + 0.9 + + + 123.46 + 0.12 + + + 1 + + + 567.89 + 0.57 + + + 678.9 + 0.2 + + + 567.89 + 0.57 + + + 345.68 + 0.35 + + + 456.79 + 0.46 + + + 7777777.78 + 0.78 + + + 567.89 + 0.57 + + + 789.01 + 0.79 + + + 890.12 + 0.89 + + + 678.9 + 0.68 + + + + \ No newline at end of file Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/test-data/StabilityPointStructuresCalculationConfigurationExporter/configurationWithStructureAndLoadSchematizationTypeQadratic.xml =================================================================== diff -u --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/test-data/StabilityPointStructuresCalculationConfigurationExporter/configurationWithStructureAndLoadSchematizationTypeQadratic.xml (revision 0) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/test-data/StabilityPointStructuresCalculationConfigurationExporter/configurationWithStructureAndLoadSchematizationTypeQadratic.xml (revision ae7570ed93ecb4cd13b6c8ce24dc82a7cb9e4557) @@ -0,0 +1,103 @@ + + + + kunstwerk1 + 123.46 + 1 + 555.55 + 1 + 0.55 + lagedrempel + kwadratisch + 42 + 0.55 + 555.55 + 9.81 + + + 890.12 + 0.89 + + + 456.79 + 0.46 + + + 234.57 + 0.23 + + + 789.01 + 0.79 + + + 1.1 + + + 345.68 + 0.35 + + + 6 + + + 901.23 + 0.9 + + + 234.57 + + + 901.23 + 0.9 + + + 123.46 + 0.12 + + + 1 + + + 567.89 + 0.57 + + + 678.9 + 0.2 + + + 567.89 + 0.57 + + + 345.68 + 0.35 + + + 456.79 + 0.46 + + + 7777777.78 + 0.78 + + + 567.89 + 0.57 + + + 789.01 + 0.79 + + + 890.12 + 0.89 + + + 678.9 + 0.68 + + + + \ No newline at end of file