Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.IO.Test/Configurations/ClosingStructuresCalculationConfigurationImporterTest.cs =================================================================== diff -u -r0bae0773243658d37a619b2904879e11c6aebe82 -re55650161e088d675d8d92374c5ee8b930b10464 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.IO.Test/Configurations/ClosingStructuresCalculationConfigurationImporterTest.cs (.../ClosingStructuresCalculationConfigurationImporterTest.cs) (revision 0bae0773243658d37a619b2904879e11c6aebe82) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.IO.Test/Configurations/ClosingStructuresCalculationConfigurationImporterTest.cs (.../ClosingStructuresCalculationConfigurationImporterTest.cs) (revision e55650161e088d675d8d92374c5ee8b930b10464) @@ -106,109 +106,160 @@ [Test] [SetCulture("nl-NL")] [TestCase("validConfigurationModelFactorSuperCriticalFlowStandardDeviation.xml", - "Er kan geen spreiding voor stochast 'modelfactoroverloopdebiet' opgegeven worden.")] + "Er kan geen spreiding voor stochast 'modelfactoroverloopdebiet' opgegeven worden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(ModelFactorSuperCriticalFlowStandardDeviation)")] [TestCase("validConfigurationModelFactorSuperCriticalFlowVariationCoefficient.xml", - "Er kan geen spreiding voor stochast 'modelfactoroverloopdebiet' opgegeven worden.")] + "Er kan geen spreiding voor stochast 'modelfactoroverloopdebiet' opgegeven worden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(ModelFactorSuperCriticalFlowVariationCoefficient)")] [TestCase("validConfigurationStormDurationVariationCoefficient.xml", - "Er kan geen spreiding voor stochast 'stormduur' opgegeven worden.")] + "Er kan geen spreiding voor stochast 'stormduur' opgegeven worden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(StormDurationVariationCoefficient)")] [TestCase("validConfigurationStormDurationStandardDeviation.xml", - "Er kan geen spreiding voor stochast 'stormduur' opgegeven worden.")] + "Er kan geen spreiding voor stochast 'stormduur' opgegeven worden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(StormDurationStandardDeviation)")] [TestCase("validConfigurationDrainCoefficientStandardDeviation.xml", - "Er kan geen spreiding voor stochast 'afvoercoefficient' opgegeven worden.")] + "Er kan geen spreiding voor stochast 'afvoercoefficient' opgegeven worden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(DrainCoefficientStandardDeviation)")] [TestCase("validConfigurationDrainCoefficientVariationCoefficient.xml", - "Er kan geen spreiding voor stochast 'afvoercoefficient' opgegeven worden.")] + "Er kan geen spreiding voor stochast 'afvoercoefficient' opgegeven worden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(DrainCoefficientVariationCoefficient)")] [TestCase("validConfigurationFailureProbabilityOpenStructureWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om kans mislukken sluiting aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om kans mislukken sluiting aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(FailureProbabilityOpenStructureWithoutStructure)")] [TestCase("validConfigurationFailureProbabilityReparationWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om faalkans herstel van gefaalde situatie aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om faalkans herstel van gefaalde situatie aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(FailureProbabilityReparationWithoutStructure)")] [TestCase("validConfigurationIdenticalAperturesWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om aantal identieke doorstroomopeningen aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om aantal identieke doorstroomopeningen aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(IdenticalAperturesWithoutStructure)")] [TestCase("validConfigurationInflowModelTypeWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om instroommodel aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om instroommodel aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InflowModelTypeWithoutStructure)")] [TestCase("validConfigurationProbabilityOrFrequencyOpenStructureWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om kans op open staan bij naderend hoogwater aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om kans op open staan bij naderend hoogwater aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(ProbabilityOrFrequencyOpenStructureWithoutStructure)")] [TestCase("validConfigurationOrientationWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om oriëntatie aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om oriëntatie aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(OrientationWithoutStructure)")] [TestCase("validConfigurationInvalidFailureProbabilityStructureErosion.xml", - "Een waarde van '1,1' als faalkans gegeven erosie bodem is ongeldig. De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.")] + "Een waarde van '1,1' als faalkans gegeven erosie bodem is ongeldig. De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidFailureProbabilityStructureErosion)")] [TestCase("validConfigurationInvalidProbabilityOrFrequencyOpenStructureBeforeFlooding.xml", - "Een waarde van '-1,2' als kans op open staan bij naderend hoogwater is ongeldig. De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.")] + "Een waarde van '-1,2' als kans op open staan bij naderend hoogwater is ongeldig. De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidProbabilityOrFrequencyOpenStructureBeforeFlooding)")] [TestCase("validConfigurationInvalidFailureProbabilityOpenStructure.xml", - "Een waarde van '1,5' als kans mislukken sluiting is ongeldig. De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.")] + "Een waarde van '1,5' als kans mislukken sluiting is ongeldig. De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidFailureProbabilityOpenStructure)")] [TestCase("validConfigurationInvalidFailureProbabilityReparation.xml", - "Een waarde van '-0,9' als faalkans herstel van gefaalde situatie is ongeldig. De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.")] + "Een waarde van '-0,9' als faalkans herstel van gefaalde situatie is ongeldig. De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidFailureProbabilityReparation)")] [TestCase("validConfigurationInvalidOrientation.xml", - "Een waarde van '-12' als oriëntatie is ongeldig. De waarde voor de oriëntatie moet in het bereik [0,00, 360,00] liggen.")] + "Een waarde van '-12' als oriëntatie is ongeldig. De waarde voor de oriëntatie moet in het bereik [0,00, 360,00] liggen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidOrientation)")] [TestCase("validConfigurationWaveReductionWithoutForeshoreProfile.xml", - "Er is geen voorlandprofiel opgegeven om golfreductie parameters aan toe te voegen.")] + "Er is geen voorlandprofiel opgegeven om golfreductie parameters aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(WaveReductionWithoutForeshoreProfile)")] [TestCase("validConfigurationInvalidAllowedLevelIncreaseStorageMean.xml", - "Een gemiddelde van '-0,2' is ongeldig voor stochast 'peilverhogingkomberging'. Gemiddelde moet groter zijn dan 0.")] + "Een gemiddelde van '-0,2' is ongeldig voor stochast 'peilverhogingkomberging'. Gemiddelde moet groter zijn dan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidAllowedLevelIncreaseStorageMean)")] [TestCase("validConfigurationInvalidAllowedLevelIncreaseStorageStandardDeviation.xml", - "Een standaardafwijking van '-0,01' is ongeldig voor stochast 'peilverhogingkomberging'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.")] + "Een standaardafwijking van '-0,01' is ongeldig voor stochast 'peilverhogingkomberging'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidAllowedLevelIncreaseStorageStandardDeviation)")] [TestCase("validConfigurationInvalidCriticalOvertoppingDischargeMean.xml", - "Een gemiddelde van '-2' is ongeldig voor stochast 'kritiekinstromenddebiet'. Gemiddelde moet groter zijn dan 0.")] + "Een gemiddelde van '-2' is ongeldig voor stochast 'kritiekinstromenddebiet'. Gemiddelde moet groter zijn dan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidCriticalOvertoppingDischargeMean)")] [TestCase("validConfigurationInvalidCriticalOvertoppingDischargeVariationCoefficient.xml", - "Een variatiecoëfficiënt van '-0,1' is ongeldig voor stochast 'kritiekinstromenddebiet'. Variatiecoëfficiënt (CV) moet groter zijn dan of gelijk zijn aan 0.")] + "Een variatiecoëfficiënt van '-0,1' is ongeldig voor stochast 'kritiekinstromenddebiet'. Variatiecoëfficiënt (CV) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidCriticalOvertoppingDischargeVariationCoefficient)")] [TestCase("validConfigurationInvalidFlowWidthAtBottomProtectionMean.xml", - "Een gemiddelde van '-15,2' is ongeldig voor stochast 'breedtebodembescherming'. Gemiddelde moet groter zijn dan 0.")] + "Een gemiddelde van '-15,2' is ongeldig voor stochast 'breedtebodembescherming'. Gemiddelde moet groter zijn dan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidFlowWidthAtBottomProtectionMean)")] [TestCase("validConfigurationInvalidFlowWidthAtBottomProtectionStandardDeviation.xml", - "Een standaardafwijking van '-0,1' is ongeldig voor stochast 'breedtebodembescherming'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.")] + "Een standaardafwijking van '-0,1' is ongeldig voor stochast 'breedtebodembescherming'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidFlowWidthAtBottomProtectionStandardDeviation)")] [TestCase("validConfigurationInvalidLevelCrestStructureNotClosingStandardDeviation.xml", - "Een standaardafwijking van '-0,1' is ongeldig voor stochast 'kruinhoogte'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.")] + "Een standaardafwijking van '-0,1' is ongeldig voor stochast 'kruinhoogte'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidLevelCrestStructureNotClosingStandardDeviation)")] [TestCase("validConfigurationInvalidStorageStructureAreaMean.xml", - "Een gemiddelde van '-15000' is ongeldig voor stochast 'kombergendoppervlak'. Gemiddelde moet groter zijn dan 0.")] + "Een gemiddelde van '-15000' is ongeldig voor stochast 'kombergendoppervlak'. Gemiddelde moet groter zijn dan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidStorageStructureAreaMean)")] [TestCase("validConfigurationInvalidStorageStructureAreaVariationCoefficient.xml", - "Een variatiecoëfficiënt van '-0,01' is ongeldig voor stochast 'kombergendoppervlak'. Variatiecoëfficiënt (CV) moet groter zijn dan of gelijk zijn aan 0.")] + "Een variatiecoëfficiënt van '-0,01' is ongeldig voor stochast 'kombergendoppervlak'. Variatiecoëfficiënt (CV) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidStorageStructureAreaVariationCoefficient)")] [TestCase("validConfigurationInvalidStormDurationMean.xml", - "Een gemiddelde van '-6' is ongeldig voor stochast 'stormduur'. Gemiddelde moet groter zijn dan 0.")] + "Een gemiddelde van '-6' is ongeldig voor stochast 'stormduur'. Gemiddelde moet groter zijn dan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidStormDurationMean)")] [TestCase("validConfigurationInvalidWidthFlowAperturesStandardDeviation.xml", - "Een standaardafwijking van '-0,1' is ongeldig voor stochast 'breedtedoorstroomopening'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.")] + "Een standaardafwijking van '-0,1' is ongeldig voor stochast 'breedtedoorstroomopening'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidWidthFlowAperturesStandardDeviation)")] [TestCase("validConfigurationInvalidAreaFlowAperturesMean.xml", - "Een gemiddelde van '-0,2' is ongeldig voor stochast 'doorstroomoppervlak'. Gemiddelde moet groter zijn dan 0.")] + "Een gemiddelde van '-0,2' is ongeldig voor stochast 'doorstroomoppervlak'. Gemiddelde moet groter zijn dan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidAreaFlowAperturesMean)")] [TestCase("validConfigurationInvalidAreaFlowAperturesStandardDeviation.xml", - "Een standaardafwijking van '-0,01' is ongeldig voor stochast 'doorstroomoppervlak'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.")] + "Een standaardafwijking van '-0,01' is ongeldig voor stochast 'doorstroomoppervlak'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidAreaFlowAperturesStandardDeviation)")] [TestCase("validConfigurationInvalidInsideWaterLevelStandardDeviation.xml", - "Een standaardafwijking van '-0,01' is ongeldig voor stochast 'binnenwaterstand'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.")] + "Een standaardafwijking van '-0,01' is ongeldig voor stochast 'binnenwaterstand'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidInsideWaterLevelStandardDeviation)")] [TestCase("validConfigurationInvalidThresholdHeightOpenWeirStandardDeviation.xml", - "Een standaardafwijking van '-0,01' is ongeldig voor stochast 'drempelhoogte'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.")] + "Een standaardafwijking van '-0,01' is ongeldig voor stochast 'drempelhoogte'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidThresholdHeightOpenWeirStandardDeviation)")] [TestCase("validConfigurationAllowedLevelIncreaseStorageVariationCoefficient.xml", - "Indien voor parameter 'peilverhogingkomberging' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.")] + "Indien voor parameter 'peilverhogingkomberging' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(AllowedLevelIncreaseStorageVariationCoefficient)")] [TestCase("validConfigurationFlowWidthAtBottomProtectionVariationCoefficient.xml", - "Indien voor parameter 'breedtebodembescherming' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.")] + "Indien voor parameter 'breedtebodembescherming' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(FlowWidthAtBottomProtectionVariationCoefficient)")] [TestCase("validConfigurationInvalidCriticalOvertoppingDischargeStandardDeviation.xml", - "Indien voor parameter 'kritiekinstromenddebiet' de spreiding wordt opgegeven, moet dit door middel van een variatiecoëfficiënt. Voor berekening 'Berekening 1' is een standaardafwijking gevonden.")] + "Indien voor parameter 'kritiekinstromenddebiet' de spreiding wordt opgegeven, moet dit door middel van een variatiecoëfficiënt. Voor berekening 'Berekening 1' is een standaardafwijking gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidCriticalOvertoppingDischargeStandardDeviation)")] [TestCase("validConfigurationLevelCrestStructureNotClosingVariationCoefficient.xml", - "Indien voor parameter 'kruinhoogte' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.")] + "Indien voor parameter 'kruinhoogte' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(LevelCrestStructureNotClosingVariationCoefficient)")] [TestCase("validConfigurationStorageStructureAreaStandardDeviation.xml", - "Indien voor parameter 'kombergendoppervlak' de spreiding wordt opgegeven, moet dit door middel van een variatiecoëfficiënt. Voor berekening 'Berekening 1' is een standaardafwijking gevonden.")] + "Indien voor parameter 'kombergendoppervlak' de spreiding wordt opgegeven, moet dit door middel van een variatiecoëfficiënt. Voor berekening 'Berekening 1' is een standaardafwijking gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(StorageStructureAreaStandardDeviation)")] [TestCase("validConfigurationWidthFlowAperturesVariationCoefficient.xml", - "Indien voor parameter 'breedtedoorstroomopening' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.")] + "Indien voor parameter 'breedtedoorstroomopening' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(WidthFlowAperturesVariationCoefficient)")] [TestCase("validConfigurationAreaFlowAperturesVariationCoefficient.xml", - "Indien voor parameter 'doorstroomoppervlak' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.")] + "Indien voor parameter 'doorstroomoppervlak' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(AreaFlowAperturesVariationCoefficient)")] [TestCase("validConfigurationInsideWaterLevelVariationCoefficient.xml", - "Indien voor parameter 'binnenwaterstand' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.")] + "Indien voor parameter 'binnenwaterstand' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InsideWaterLevelVariationCoefficient)")] [TestCase("validConfigurationThresholdHeightOpenWeirVariationCoefficient.xml", - "Indien voor parameter 'drempelhoogte' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.")] + "Indien voor parameter 'drempelhoogte' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(ThresholdHeightOpenWeirVariationCoefficient)")] [TestCase("validConfigurationStorageStructureAreaWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'kombergendoppervlak' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'kombergendoppervlak' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(StorageStructureAreaWithoutStructure)")] [TestCase("validConfigurationCriticalOvertoppingDischargeWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'kritiekinstromenddebiet' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'kritiekinstromenddebiet' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(CriticalOvertoppingDischargeWithoutStructure)")] [TestCase("validConfigurationAllowedLevelIncreaseStorageWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'peilverhogingkomberging' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'peilverhogingkomberging' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(AllowedLevelIncreaseStorageWithoutStructure)")] [TestCase("validConfigurationAreaFlowAperturesWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'doorstroomoppervlak' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'doorstroomoppervlak' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(AreaFlowAperturesWithoutStructure)")] [TestCase("validConfigurationFlowWidthAtBottomProtectionWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'breedtebodembescherming' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'breedtebodembescherming' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(FlowWidthAtBottomProtectionWithoutStructure)")] [TestCase("validConfigurationInsideWaterLevelWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'binnenwaterstand' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'binnenwaterstand' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InsideWaterLevelWithoutStructure)")] [TestCase("validConfigurationLevelCrestStructureNotClosingWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'kruinhoogte' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'kruinhoogte' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(LevelCrestStructureNotClosingWithoutStructure)")] [TestCase("validConfigurationThresholdHeightOpenWeirWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'drempelhoogte' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'drempelhoogte' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(ThresholdHeightOpenWeirWithoutStructure)")] [TestCase("validConfigurationWidthFlowAperturesWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'breedtedoorstroomopening' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'breedtedoorstroomopening' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(WidthFlowAperturesWithoutStructure)")] public void Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(string file, string expectedErrorMessage) { // Setup Index: Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/DistributionPropertiesTestHelperTest.cs =================================================================== diff -u -r332fd224ce5cd9c737e72f945271c52ae6d64c0d -re55650161e088d675d8d92374c5ee8b930b10464 --- Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/DistributionPropertiesTestHelperTest.cs (.../DistributionPropertiesTestHelperTest.cs) (revision 332fd224ce5cd9c737e72f945271c52ae6d64c0d) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/DistributionPropertiesTestHelperTest.cs (.../DistributionPropertiesTestHelperTest.cs) (revision e55650161e088d675d8d92374c5ee8b930b10464) @@ -32,88 +32,6 @@ [TestFixture] public class DistributionPropertiesTestHelperTest { - #region Test case data - - private static TestCaseData[] distributionTestCases = { - new TestCaseData( - new SimpleDistributionProperties(DistributionPropertiesReadOnly.All), - true, - true, - true) - .SetName("Distribution, All read-only, correct assertions."), - new TestCaseData( - new SimpleDistributionProperties(DistributionPropertiesReadOnly.All), - false, - true, - false) - .SetName("Distribution, All read-only, incorrect assertions."), - new TestCaseData( - new SimpleDistributionProperties(DistributionPropertiesReadOnly.All), - true, - false, - false) - .SetName("Distribution, All read-only, incorrect assertions."), - new TestCaseData( - new SimpleDistributionProperties(DistributionPropertiesReadOnly.Mean), - true, - false, - true) - .SetName("Distribution, Mean read-only, correct assertions."), - new TestCaseData( - new SimpleDistributionProperties(DistributionPropertiesReadOnly.StandardDeviation), - false, - true, - true) - .SetName("Distribution, StandardDeviation read-only, correct assertions."), - new TestCaseData( - new SimpleDistributionProperties(DistributionPropertiesReadOnly.None), - false, - false, - true) - .SetName("Distribution, None read-only, correct assertions."), - }; - - private static TestCaseData[] variationCoefficientDistributionTestCases = { - new TestCaseData( - new SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly.All), - true, - true, - true) - .SetName("VariationDistribution, All read-only, correct assertions."), - new TestCaseData( - new SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly.All), - false, - true, - false) - .SetName("VariationDistribution, All read-only, incorrect assertions."), - new TestCaseData( - new SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly.All), - true, - false, - false) - .SetName("VariationDistribution, All read-only, incorrect assertions."), - new TestCaseData( - new SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly.Mean), - true, - false, - true) - .SetName("VariationDistribution, Mean read-only, correct assertions."), - new TestCaseData( - new SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly.CoefficientOfVariation), - false, - true, - true) - .SetName("VariationDistribution, CoefficientOfVariation read-only, correct assertions."), - new TestCaseData( - new SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly.None), - false, - false, - true) - .SetName("VariationDistribution, None read-only, correct assertions."), - }; - - #endregion - [Test] [TestCaseSource(nameof(distributionTestCases))] public void AssertPropertiesAreReadOnly_DifferentDistributions_ExpectedAssertionsCalled( @@ -158,7 +76,7 @@ } } - public class SimpleDistributionProperties : DistributionPropertiesBase + private class SimpleDistributionProperties : DistributionPropertiesBase { public SimpleDistributionProperties(DistributionPropertiesReadOnly propertiesReadOnly) : base(propertiesReadOnly, @@ -168,7 +86,7 @@ public override string DistributionType { get; } } - public class SimpleVariationCoefficientDistributionProperties : VariationCoefficientDistributionPropertiesBase + private class SimpleVariationCoefficientDistributionProperties : VariationCoefficientDistributionPropertiesBase { public SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly propertiesReadOnly) : base(propertiesReadOnly, @@ -178,11 +96,11 @@ public override string DistributionType { get; } } - public class SimplePropertyChangeHandler : IObservablePropertyChangeHandler + private class SimplePropertyChangeHandler : IObservablePropertyChangeHandler { public IEnumerable SetPropertyValueAfterConfirmation(SetObservablePropertyValueDelegate setValue) { - throw new System.NotImplementedException(); + throw new NotImplementedException(); } } @@ -197,5 +115,89 @@ throw new NotImplementedException(); } } + + #region Test case data + + private static TestCaseData[] distributionTestCases = + { + new TestCaseData( + new SimpleDistributionProperties(DistributionPropertiesReadOnly.All), + true, + true, + true) + .SetName("Distribution, All read-only, correct assertions."), + new TestCaseData( + new SimpleDistributionProperties(DistributionPropertiesReadOnly.All), + false, + true, + false) + .SetName("Distribution, All read-only, incorrect assertion mean."), + new TestCaseData( + new SimpleDistributionProperties(DistributionPropertiesReadOnly.All), + true, + false, + false) + .SetName("Distribution, All read-only, incorrect assertion deviation."), + new TestCaseData( + new SimpleDistributionProperties(DistributionPropertiesReadOnly.Mean), + true, + false, + true) + .SetName("Distribution, Mean read-only, correct assertions."), + new TestCaseData( + new SimpleDistributionProperties(DistributionPropertiesReadOnly.StandardDeviation), + false, + true, + true) + .SetName("Distribution, StandardDeviation read-only, correct assertions."), + new TestCaseData( + new SimpleDistributionProperties(DistributionPropertiesReadOnly.None), + false, + false, + true) + .SetName("Distribution, None read-only, correct assertions."), + }; + + private static TestCaseData[] variationCoefficientDistributionTestCases = + { + new TestCaseData( + new SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly.All), + true, + true, + true) + .SetName("VariationDistribution, All read-only, correct assertions."), + new TestCaseData( + new SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly.All), + false, + true, + false) + .SetName("VariationDistribution, All read-only, incorrect assertion mean."), + new TestCaseData( + new SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly.All), + true, + false, + false) + .SetName("VariationDistribution, All read-only, incorrect assertion variation."), + new TestCaseData( + new SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly.Mean), + true, + false, + true) + .SetName("VariationDistribution, Mean read-only, correct assertions."), + new TestCaseData( + new SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly.CoefficientOfVariation), + false, + true, + true) + .SetName("VariationDistribution, CoefficientOfVariation read-only, correct assertions."), + new TestCaseData( + new SimpleVariationCoefficientDistributionProperties(VariationCoefficientDistributionPropertiesReadOnly.None), + false, + false, + true) + .SetName("VariationDistribution, None read-only, correct assertions."), + }; + + #endregion } } \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/MapDataTestHelperTest.cs =================================================================== diff -u -r7fc071aa21ada037052184432c734ce79adf5c8c -re55650161e088d675d8d92374c5ee8b930b10464 --- Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/MapDataTestHelperTest.cs (.../MapDataTestHelperTest.cs) (revision 7fc071aa21ada037052184432c734ce79adf5c8c) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/MapDataTestHelperTest.cs (.../MapDataTestHelperTest.cs) (revision e55650161e088d675d8d92374c5ee8b930b10464) @@ -1216,11 +1216,11 @@ WmtsMapData otherVisibility = WmtsMapDataTestHelper.CreateDefaultPdokMapData(); otherVisibility.IsVisible = !otherVisibility.IsVisible; - yield return new TestCaseData(otherVisibility); + yield return new TestCaseData(otherVisibility).SetName("WmtsMapDataOtherDifferentVisibility"); WmtsMapData otherTransparency = WmtsMapDataTestHelper.CreateDefaultPdokMapData(); otherTransparency.Transparency = (RoundedDouble) ((otherTransparency.Transparency + 0.5) % 1); - yield return new TestCaseData(otherTransparency); + yield return new TestCaseData(otherTransparency).SetName("WmtsMapDataOtherDifferentTransparency"); } private static IEnumerable NotEqualToBingAerial() Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/StructuresCalculationStochastAssignerTest.cs =================================================================== diff -u -r65c74eaad22b576971bae588c9793d76950b8cad -re55650161e088d675d8d92374c5ee8b930b10464 --- Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/StructuresCalculationStochastAssignerTest.cs (.../StructuresCalculationStochastAssignerTest.cs) (revision 65c74eaad22b576971bae588c9793d76950b8cad) +++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/StructuresCalculationStochastAssignerTest.cs (.../StructuresCalculationStochastAssignerTest.cs) (revision e55650161e088d675d8d92374c5ee8b930b10464) @@ -67,7 +67,7 @@ VariationCoefficient = 3.2 }), "modelfactoroverloopdebiet") - .SetName("Assign_SetModelFactorSuperCriticalFlowStandardDeviation"); + .SetName("Assign_SetModelFactorSuperCriticalFlowVariationCoefficient"); } } Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/Readers/GrassCoverErosionInwardsCalculationConfigurationReaderTest.cs =================================================================== diff -u -r1d0d15d06ee8bbca20b17d9b6776c859a4100095 -re55650161e088d675d8d92374c5ee8b930b10464 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/Readers/GrassCoverErosionInwardsCalculationConfigurationReaderTest.cs (.../GrassCoverErosionInwardsCalculationConfigurationReaderTest.cs) (revision 1d0d15d06ee8bbca20b17d9b6776c859a4100095) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/Readers/GrassCoverErosionInwardsCalculationConfigurationReaderTest.cs (.../GrassCoverErosionInwardsCalculationConfigurationReaderTest.cs) (revision e55650161e088d675d8d92374c5ee8b930b10464) @@ -302,8 +302,10 @@ } [Test] - [TestCase("validConfigurationFullCalculation.xml")] - [TestCase("validConfigurationFullCalculation_differentOrder.xml")] + [TestCase("validConfigurationFullCalculation.xml", + TestName = "Read_ValidConfigurationWithFullCalculation_ReturnExpectedReadCalculation(FullCalculation)")] + [TestCase("validConfigurationFullCalculation_differentOrder.xml", + TestName = "Read_ValidConfigurationWithFullCalculation_ReturnExpectedReadCalculation(FullCalculation_differentOrder)")] public void Read_ValidConfigurationWithFullCalculation_ReturnExpectedReadCalculation(string fileName) { // Setup Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r3be9b3d3afa5f4dc4ed422f774405c127baaaf4e -re55650161e088d675d8d92374c5ee8b930b10464 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision 3be9b3d3afa5f4dc4ed422f774405c127baaaf4e) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision e55650161e088d675d8d92374c5ee8b930b10464) @@ -564,7 +564,7 @@ } [Test] - public void GivenCalculationsWithDikeProfileWithoutOutput_WhenDikeProfileUpdatedAndUpdateDikeProfileClicked_ThenNoInquiryAndCalculationUpdatedAndInputObserverNotified() + public void GivenCalculationsWithDikeProfileWithoutOutput_WhenDikeProfileUpdatedAndUpdateClicked_ThenNoInquiryAndCalculationUpdatedAndInputObserverNotified() { // Given var calculation1InputObserver = mocks.StrictMock(); @@ -653,7 +653,7 @@ } [Test] - public void GivenCalculationWithDikeProfileWithOutput_WhenDikeProfileHasChangesAndUpdateDikeProfileClickedAndCancelled_ThenInquiresAndCalculationsNotUpdatedAndObserversNotNotified() + public void GivenCalculationWithDikeProfileWithOutput_WhenProfileHasChangesAndUpdateCancelled_ThenInquiresAndCalculationsNotUpdatedAndObserversNotNotified() { // Given var calculation1InputObserver = mocks.StrictMock(); @@ -765,7 +765,7 @@ } [Test] - public void GivenCalculationWithDikeProfileWithOutput_WhenDikeProfileHasChangesAndUpdateDikeProfileClickedAndContinued_ThenInquiresAndCalculationsUpdatedAndObserversNotified() + public void GivenCalculationWithDikeProfileWithOutput_WhenProfileHasChangesAndUpdateContinued_ThenInquiresAndCalculationsUpdatedAndObserversNotified() { // Given var calculation1InputObserver = mocks.StrictMock(); Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.IO.Test/Configurations/HeightStructuresCalculationConfigurationImporterTest.cs =================================================================== diff -u -r0bae0773243658d37a619b2904879e11c6aebe82 -re55650161e088d675d8d92374c5ee8b930b10464 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.IO.Test/Configurations/HeightStructuresCalculationConfigurationImporterTest.cs (.../HeightStructuresCalculationConfigurationImporterTest.cs) (revision 0bae0773243658d37a619b2904879e11c6aebe82) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.IO.Test/Configurations/HeightStructuresCalculationConfigurationImporterTest.cs (.../HeightStructuresCalculationConfigurationImporterTest.cs) (revision e55650161e088d675d8d92374c5ee8b930b10464) @@ -106,71 +106,104 @@ [Test] [SetCulture("nl-NL")] [TestCase("validConfigurationModelFactorSuperCriticalFlowStandardDeviation.xml", - "Er kan geen spreiding voor stochast 'modelfactoroverloopdebiet' opgegeven worden.")] + "Er kan geen spreiding voor stochast 'modelfactoroverloopdebiet' opgegeven worden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(ModelFactorSuperCriticalFlowStandardDeviation)")] [TestCase("validConfigurationModelFactorSuperCriticalFlowVariationCoefficient.xml", - "Er kan geen spreiding voor stochast 'modelfactoroverloopdebiet' opgegeven worden.")] + "Er kan geen spreiding voor stochast 'modelfactoroverloopdebiet' opgegeven worden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(ModelFactorSuperCriticalFlowVariationCoefficient)")] [TestCase("validConfigurationStormDurationVariationCoefficient.xml", - "Er kan geen spreiding voor stochast 'stormduur' opgegeven worden.")] + "Er kan geen spreiding voor stochast 'stormduur' opgegeven worden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(StormDurationVariationCoefficient)")] [TestCase("validConfigurationStormDurationStandardDeviation.xml", - "Er kan geen spreiding voor stochast 'stormduur' opgegeven worden.")] + "Er kan geen spreiding voor stochast 'stormduur' opgegeven worden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(StormDurationStandardDeviation)")] [TestCase("validConfigurationFailureProbabilityStructureErosionWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om faalkans gegeven erosie bodem aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om faalkans gegeven erosie bodem aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(FailureProbabilityStructureErosionWithoutStructure)")] [TestCase("validConfigurationOrientationWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om oriëntatie aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om oriëntatie aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(OrientationWithoutStructure)")] [TestCase("validConfigurationInvalidFailureProbabilityStructureErosion.xml", - "Een waarde van '1,1' als faalkans gegeven erosie bodem is ongeldig. De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.")] + "Een waarde van '1,1' als faalkans gegeven erosie bodem is ongeldig. De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidFailureProbabilityStructureErosion)")] [TestCase("validConfigurationInvalidOrientation.xml", - "Een waarde van '-12' als oriëntatie is ongeldig. De waarde voor de oriëntatie moet in het bereik [0,00, 360,00] liggen.")] + "Een waarde van '-12' als oriëntatie is ongeldig. De waarde voor de oriëntatie moet in het bereik [0,00, 360,00] liggen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidOrientation)")] [TestCase("validConfigurationWaveReductionWithoutForeshoreProfile.xml", - "Er is geen voorlandprofiel opgegeven om golfreductie parameters aan toe te voegen.")] + "Er is geen voorlandprofiel opgegeven om golfreductie parameters aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(WaveReductionWithoutForeshoreProfile)")] [TestCase("validConfigurationInvalidAllowedLevelIncreaseStorageMean.xml", - "Een gemiddelde van '-0,2' is ongeldig voor stochast 'peilverhogingkomberging'. Gemiddelde moet groter zijn dan 0.")] + "Een gemiddelde van '-0,2' is ongeldig voor stochast 'peilverhogingkomberging'. Gemiddelde moet groter zijn dan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidAllowedLevelIncreaseStorageMean)")] [TestCase("validConfigurationInvalidAllowedLevelIncreaseStorageStandardDeviation.xml", - "Een standaardafwijking van '-0,01' is ongeldig voor stochast 'peilverhogingkomberging'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.")] + "Een standaardafwijking van '-0,01' is ongeldig voor stochast 'peilverhogingkomberging'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidAllowedLevelIncreaseStorageStandardDeviation)")] [TestCase("validConfigurationInvalidCriticalOvertoppingDischargeMean.xml", - "Een gemiddelde van '-2' is ongeldig voor stochast 'kritiekinstromenddebiet'. Gemiddelde moet groter zijn dan 0.")] + "Een gemiddelde van '-2' is ongeldig voor stochast 'kritiekinstromenddebiet'. Gemiddelde moet groter zijn dan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidCriticalOvertoppingDischargeMean)")] [TestCase("validConfigurationInvalidCriticalOvertoppingDischargeVariationCoefficient.xml", - "Een variatiecoëfficiënt van '-0,1' is ongeldig voor stochast 'kritiekinstromenddebiet'. Variatiecoëfficiënt (CV) moet groter zijn dan of gelijk zijn aan 0.")] + "Een variatiecoëfficiënt van '-0,1' is ongeldig voor stochast 'kritiekinstromenddebiet'. Variatiecoëfficiënt (CV) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidCriticalOvertoppingDischargeVariationCoefficient)")] [TestCase("validConfigurationInvalidFlowWidthAtBottomProtectionMean.xml", - "Een gemiddelde van '-15,2' is ongeldig voor stochast 'breedtebodembescherming'. Gemiddelde moet groter zijn dan 0.")] + "Een gemiddelde van '-15,2' is ongeldig voor stochast 'breedtebodembescherming'. Gemiddelde moet groter zijn dan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidFlowWidthAtBottomProtectionMean)")] [TestCase("validConfigurationInvalidFlowWidthAtBottomProtectionStandardDeviation.xml", - "Een standaardafwijking van '-0,1' is ongeldig voor stochast 'breedtebodembescherming'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.")] + "Een standaardafwijking van '-0,1' is ongeldig voor stochast 'breedtebodembescherming'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidFlowWidthAtBottomProtectionStandardDeviation)")] [TestCase("validConfigurationInvalidLevelCrestStructureStandardDeviation.xml", - "Een standaardafwijking van '-0,1' is ongeldig voor stochast 'kerendehoogte'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.")] + "Een standaardafwijking van '-0,1' is ongeldig voor stochast 'kerendehoogte'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidLevelCrestStructureStandardDeviation)")] [TestCase("validConfigurationInvalidStorageStructureAreaMean.xml", - "Een gemiddelde van '-15000' is ongeldig voor stochast 'kombergendoppervlak'. Gemiddelde moet groter zijn dan 0.")] + "Een gemiddelde van '-15000' is ongeldig voor stochast 'kombergendoppervlak'. Gemiddelde moet groter zijn dan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidStorageStructureAreaMean)")] [TestCase("validConfigurationInvalidStorageStructureAreaVariationCoefficient.xml", - "Een variatiecoëfficiënt van '-0,01' is ongeldig voor stochast 'kombergendoppervlak'. Variatiecoëfficiënt (CV) moet groter zijn dan of gelijk zijn aan 0.")] + "Een variatiecoëfficiënt van '-0,01' is ongeldig voor stochast 'kombergendoppervlak'. Variatiecoëfficiënt (CV) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidStorageStructureAreaVariationCoefficient)")] [TestCase("validConfigurationInvalidStormDurationMean.xml", - "Een gemiddelde van '-6' is ongeldig voor stochast 'stormduur'. Gemiddelde moet groter zijn dan 0.")] + "Een gemiddelde van '-6' is ongeldig voor stochast 'stormduur'. Gemiddelde moet groter zijn dan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidStormDurationMean)")] [TestCase("validConfigurationInvalidWidthFlowAperturesStandardDeviation.xml", - "Een standaardafwijking van '-0,1' is ongeldig voor stochast 'breedtedoorstroomopening'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.")] + "Een standaardafwijking van '-0,1' is ongeldig voor stochast 'breedtedoorstroomopening'. Standaardafwijking (σ) moet groter zijn dan of gelijk zijn aan 0.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(InvalidWidthFlowAperturesStandardDeviation)")] [TestCase("validConfigurationAllowedLevelIncreaseStorageVariationCoefficient.xml", - "Indien voor parameter 'peilverhogingkomberging' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.")] + "Indien voor parameter 'peilverhogingkomberging' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(AllowedLevelIncreaseStorageVariationCoefficient)")] [TestCase("validConfigurationCriticalOvertoppingDischargeStandardDeviation.xml", - "Indien voor parameter 'kritiekinstromenddebiet' de spreiding wordt opgegeven, moet dit door middel van een variatiecoëfficiënt. Voor berekening 'Berekening 1' is een standaardafwijking gevonden.")] + "Indien voor parameter 'kritiekinstromenddebiet' de spreiding wordt opgegeven, moet dit door middel van een variatiecoëfficiënt. Voor berekening 'Berekening 1' is een standaardafwijking gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(CriticalOvertoppingDischargeStandardDeviation)")] [TestCase("validConfigurationFlowWidthAtBottomProtectionVariationCoefficient.xml", - "Indien voor parameter 'breedtebodembescherming' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.")] + "Indien voor parameter 'breedtebodembescherming' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(FlowWidthAtBottomProtectionVariationCoefficient)")] [TestCase("validConfigurationLevelCrestStructureVariationCoefficient.xml", - "Indien voor parameter 'kerendehoogte' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.")] + "Indien voor parameter 'kerendehoogte' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(LevelCrestStructureVariationCoefficient)")] [TestCase("validConfigurationStorageStructureAreaStandardDeviation.xml", - "Indien voor parameter 'kombergendoppervlak' de spreiding wordt opgegeven, moet dit door middel van een variatiecoëfficiënt. Voor berekening 'Berekening 1' is een standaardafwijking gevonden.")] + "Indien voor parameter 'kombergendoppervlak' de spreiding wordt opgegeven, moet dit door middel van een variatiecoëfficiënt. Voor berekening 'Berekening 1' is een standaardafwijking gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(StorageStructureAreaStandardDeviation)")] [TestCase("validConfigurationWidthFlowAperturesVariationCoefficient.xml", - "Indien voor parameter 'breedtedoorstroomopening' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.")] + "Indien voor parameter 'breedtedoorstroomopening' de spreiding wordt opgegeven, moet dit door middel van een standaardafwijking. Voor berekening 'Berekening 1' is een variatiecoëfficiënt gevonden.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(WidthFlowAperturesVariationCoefficient)")] [TestCase("validConfigurationAllowedLevelIncreaseWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'peilverhogingkomberging' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'peilverhogingkomberging' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(AllowedLevelIncreaseWithoutStructure)")] [TestCase("validConfigurationCriticalOvertoppingDischargeWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'kritiekinstromenddebiet' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'kritiekinstromenddebiet' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(CriticalOvertoppingDischargeWithoutStructure)")] [TestCase("validConfigurationFlowWidthAtBottomProtectionWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'breedtebodembescherming' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'breedtebodembescherming' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(FlowWidthAtBottomProtectionWithoutStructure)")] [TestCase("validConfigurationLevelCrestStructureWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'kerendehoogte' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'kerendehoogte' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(LevelCrestStructureWithoutStructure)")] [TestCase("validConfigurationStorageStructureAreaWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'kombergendoppervlak' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'kombergendoppervlak' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(StorageStructureAreaWithoutStructure)")] [TestCase("validConfigurationWidthFlowAperturesWithoutStructure.xml", - "Er is geen kunstwerk opgegeven om de stochast 'breedtedoorstroomopening' aan toe te voegen.")] + "Er is geen kunstwerk opgegeven om de stochast 'breedtedoorstroomopening' aan toe te voegen.", + TestName = "Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(WidthFlowAperturesWithoutStructure)")] + public void Import_ValidConfigurationInvalidData_LogMessageAndContinueImport(string file, string expectedErrorMessage) { // Setup Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/Readers/PipingCalculationConfigurationReaderTest.cs =================================================================== diff -u -rfe7c27dc926b4087fd6ed9551655d0571c8018c9 -re55650161e088d675d8d92374c5ee8b930b10464 --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/Readers/PipingCalculationConfigurationReaderTest.cs (.../PipingCalculationConfigurationReaderTest.cs) (revision fe7c27dc926b4087fd6ed9551655d0571c8018c9) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/Readers/PipingCalculationConfigurationReaderTest.cs (.../PipingCalculationConfigurationReaderTest.cs) (revision e55650161e088d675d8d92374c5ee8b930b10464) @@ -265,8 +265,10 @@ } [Test] - [TestCase("validConfigurationFullCalculationContainingHydraulicBoundaryLocation.xml")] - [TestCase("validConfigurationFullCalculationContainingHydraulicBoundaryLocation_differentOrder.xml")] + [TestCase("validConfigurationFullCalculationContainingHydraulicBoundaryLocation.xml", + TestName = "Read_ValidConfigurationWithFullCalculationContainingHydraulicBoundaryLocation_ReturnPipingCalculation(HydraulicBoundaryLocation)")] + [TestCase("validConfigurationFullCalculationContainingHydraulicBoundaryLocation_differentOrder.xml", + TestName = "Read_ValidConfigurationWithFullCalculationContainingHydraulicBoundaryLocation_ReturnPipingCalculation(HydraulicBoundaryLocation_differentOrder)")] public void Read_ValidConfigurationWithFullCalculationContainingHydraulicBoundaryLocation_ReturnExpectedReadPipingCalculation(string fileName) { // Setup @@ -295,8 +297,10 @@ } [Test] - [TestCase("validConfigurationFullCalculationContainingAssessmentLevel.xml")] - [TestCase("validConfigurationFullCalculationContainingAssessmentLevel_differentOrder.xml")] + [TestCase("validConfigurationFullCalculationContainingAssessmentLevel.xml", + TestName = "Read_ValidConfigurationWithFullCalculationContainingAssessmentLevel_ReturnPipingCalculation(AssessmentLevel)")] + [TestCase("validConfigurationFullCalculationContainingAssessmentLevel_differentOrder.xml", + TestName = "Read_ValidConfigurationWithFullCalculationContainingAssessmentLevel_ReturnPipingCalculation(AssessmentLevel_differentOrder)")] public void Read_ValidConfigurationWithFullCalculationContainingAssessmentLevel_ReturnExpectedReadPipingCalculation(string fileName) { // Setup Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Configurations/Helpers/ConfigurationStabilityPointStructuresInflowModelTypeConverterTest.cs =================================================================== diff -u -r56beff6e761d1d6f07fcd566791a03baad5c7358 -re55650161e088d675d8d92374c5ee8b930b10464 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Configurations/Helpers/ConfigurationStabilityPointStructuresInflowModelTypeConverterTest.cs (.../ConfigurationStabilityPointStructuresInflowModelTypeConverterTest.cs) (revision 56beff6e761d1d6f07fcd566791a03baad5c7358) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Configurations/Helpers/ConfigurationStabilityPointStructuresInflowModelTypeConverterTest.cs (.../ConfigurationStabilityPointStructuresInflowModelTypeConverterTest.cs) (revision e55650161e088d675d8d92374c5ee8b930b10464) @@ -256,8 +256,10 @@ } [Test] - [TestCase(StabilityPointStructureInflowModelType.FloodedCulvert, ConfigurationStabilityPointStructuresInflowModelType.FloodedCulvert)] - [TestCase(StabilityPointStructureInflowModelType.LowSill, ConfigurationStabilityPointStructuresInflowModelType.LowSill)] + [TestCase(StabilityPointStructureInflowModelType.FloodedCulvert, ConfigurationStabilityPointStructuresInflowModelType.FloodedCulvert, + TestName = "ConvertFrom_StabilityPointStructureInflowModelType_ReturnFloodedCulvertConfigurationInflowModelType(FloodedCulvert)")] + [TestCase(StabilityPointStructureInflowModelType.LowSill, ConfigurationStabilityPointStructuresInflowModelType.LowSill, + TestName = "ConvertFrom_StabilityPointStructureInflowModelType_ReturnLowSillConfigurationInflowModelType(LowSill)")] public void ConvertFrom_StabilityPointStructureInflowModelType_ReturnExpectedConfigurationInflowModelType(StabilityPointStructureInflowModelType value, ConfigurationStabilityPointStructuresInflowModelType expectedResult) { Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Configurations/Helpers/ConfigurationStabilityPointStructuresLoadSchematizationTypeConverterTest.cs =================================================================== diff -u -r56beff6e761d1d6f07fcd566791a03baad5c7358 -re55650161e088d675d8d92374c5ee8b930b10464 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Configurations/Helpers/ConfigurationStabilityPointStructuresLoadSchematizationTypeConverterTest.cs (.../ConfigurationStabilityPointStructuresLoadSchematizationTypeConverterTest.cs) (revision 56beff6e761d1d6f07fcd566791a03baad5c7358) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.IO.Test/Configurations/Helpers/ConfigurationStabilityPointStructuresLoadSchematizationTypeConverterTest.cs (.../ConfigurationStabilityPointStructuresLoadSchematizationTypeConverterTest.cs) (revision e55650161e088d675d8d92374c5ee8b930b10464) @@ -82,8 +82,10 @@ } [Test] - [TestCase(ConfigurationStabilityPointStructuresLoadSchematizationType.Linear, StabilityPointStructuresConfigurationSchemaIdentifiers.LoadSchematizationLinearStructure)] - [TestCase(ConfigurationStabilityPointStructuresLoadSchematizationType.Quadratic, StabilityPointStructuresConfigurationSchemaIdentifiers.LoadSchematizationQuadraticStructure)] + [TestCase(ConfigurationStabilityPointStructuresLoadSchematizationType.Linear, StabilityPointStructuresConfigurationSchemaIdentifiers.LoadSchematizationLinearStructure, + TestName = "ConvertTo_ForLinearConfigurationConfigurationStabilityPointStructuresLoadSchematizationType_ReturnExpectedText(Linear)")] + [TestCase(ConfigurationStabilityPointStructuresLoadSchematizationType.Quadratic, StabilityPointStructuresConfigurationSchemaIdentifiers.LoadSchematizationQuadraticStructure, + TestName = "ConvertTo_ForQuadraticConfigurationConfigurationStabilityPointStructuresLoadSchematizationType_ReturnExpectedText(Quadratic)")] public void ConvertTo_ForAllEnumValues_ReturnExpectedText(ConfigurationStabilityPointStructuresLoadSchematizationType value, string expectedText) { @@ -142,8 +144,10 @@ } [Test] - [TestCase(ConfigurationStabilityPointStructuresLoadSchematizationType.Linear, LoadSchematizationType.Linear)] - [TestCase(ConfigurationStabilityPointStructuresLoadSchematizationType.Quadratic, LoadSchematizationType.Quadratic)] + [TestCase(ConfigurationStabilityPointStructuresLoadSchematizationType.Linear, LoadSchematizationType.Linear, + TestName = "ConvertTo_ForLinearConfigurationStabilityPointStructuresLoadSchematizationType_ReturnLinearLoadSchematizationType")] + [TestCase(ConfigurationStabilityPointStructuresLoadSchematizationType.Quadratic, LoadSchematizationType.Quadratic, + TestName = "ConvertTo_ForQuadraticConfigurationStabilityPointStructuresLoadSchematizationType_ReturnQuadraticLoadSchematizationType")] public void ConvertTo_ForAllEnumValues_ReturnExpectedType(ConfigurationStabilityPointStructuresLoadSchematizationType value, LoadSchematizationType expectedText) { @@ -197,8 +201,10 @@ } [Test] - [TestCase(StabilityPointStructuresConfigurationSchemaIdentifiers.LoadSchematizationLinearStructure, ConfigurationStabilityPointStructuresLoadSchematizationType.Linear)] - [TestCase(StabilityPointStructuresConfigurationSchemaIdentifiers.LoadSchematizationQuadraticStructure, ConfigurationStabilityPointStructuresLoadSchematizationType.Quadratic)] + [TestCase(StabilityPointStructuresConfigurationSchemaIdentifiers.LoadSchematizationLinearStructure, ConfigurationStabilityPointStructuresLoadSchematizationType.Linear, + TestName = "ConvertFrom_LinearText_ReturnLinearConfigurationStabilityPointStructuresLoadSchematizationType")] + [TestCase(StabilityPointStructuresConfigurationSchemaIdentifiers.LoadSchematizationQuadraticStructure, ConfigurationStabilityPointStructuresLoadSchematizationType.Quadratic, + TestName = "ConvertFrom_QuadraticText_ReturnQuadraticConfigurationStabilityPointStructuresLoadSchematizationType")] public void ConvertFrom_Text_ReturnExpectedConfigurationStabilityPointStructuresLoadSchematizationType(string value, ConfigurationStabilityPointStructuresLoadSchematizationType expectedResult) { @@ -256,8 +262,10 @@ } [Test] - [TestCase(LoadSchematizationType.Linear, ConfigurationStabilityPointStructuresLoadSchematizationType.Linear)] - [TestCase(LoadSchematizationType.Quadratic, ConfigurationStabilityPointStructuresLoadSchematizationType.Quadratic)] + [TestCase(LoadSchematizationType.Linear, ConfigurationStabilityPointStructuresLoadSchematizationType.Linear, + TestName = "ConvertFrom_ForLinearLoadSchematizationType_ReturnLinearConfigurationStabilityPointStructuresLoadSchematizationType")] + [TestCase(LoadSchematizationType.Quadratic, ConfigurationStabilityPointStructuresLoadSchematizationType.Quadratic, + TestName = "ConvertFrom_ForQuadraticLoadSchematizationType_ReturnQuadraticConfigurationStabilityPointStructuresLoadSchematizationType")] public void ConvertFrom_StabilityPointStructureInflowModelType_ReturnExpectedConfigurationInflowModelType( LoadSchematizationType value, ConfigurationStabilityPointStructuresLoadSchematizationType expectedResult)