Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.IO.Test/ConfigurationClosingStructureInflowModelTypeConverterTest.cs =================================================================== diff -u -rc0c4d914f97d3471b73898030db0066dced39331 -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.IO.Test/ConfigurationClosingStructureInflowModelTypeConverterTest.cs (.../ConfigurationClosingStructureInflowModelTypeConverterTest.cs) (revision c0c4d914f97d3471b73898030db0066dced39331) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.IO.Test/ConfigurationClosingStructureInflowModelTypeConverterTest.cs (.../ConfigurationClosingStructureInflowModelTypeConverterTest.cs) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -212,5 +212,17 @@ Assert.AreEqual(expectedResult, result); } + [Test] + public void ConvertFrom_InvalidClosingStructureInflowModelType_ThrowNotSupportedException() + { + // Setup + var converter = new ConfigurationClosingStructureInflowModelTypeConverter(); + + // Call + TestDelegate call = () => converter.ConvertFrom((ClosingStructureInflowModelType)(-1)); + + // Assert + Assert.Throws(call); + } } } \ No newline at end of file Index: Ringtoets/Common/src/Ringtoets.Common.IO/Configurations/CalculationGroupConfiguration.cs =================================================================== diff -u -re50b6ad32d33acb630c391bce2a6d359cc7e2b28 -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/Common/src/Ringtoets.Common.IO/Configurations/CalculationGroupConfiguration.cs (.../CalculationGroupConfiguration.cs) (revision e50b6ad32d33acb630c391bce2a6d359cc7e2b28) +++ Ringtoets/Common/src/Ringtoets.Common.IO/Configurations/CalculationGroupConfiguration.cs (.../CalculationGroupConfiguration.cs) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -20,12 +20,11 @@ // All rights reserved. using System.Collections.Generic; -using Ringtoets.Common.IO.Readers; namespace Ringtoets.Common.IO.Configurations { /// - /// Class that represents a calculation group that is read via . + /// Class that represents a configuration of a calculation group. /// public class CalculationGroupConfiguration : IConfigurationItem { Index: Ringtoets/Common/src/Ringtoets.Common.IO/Configurations/Helpers/DistributionConversionExtensions.cs =================================================================== diff -u --- Ringtoets/Common/src/Ringtoets.Common.IO/Configurations/Helpers/DistributionConversionExtensions.cs (revision 0) +++ Ringtoets/Common/src/Ringtoets.Common.IO/Configurations/Helpers/DistributionConversionExtensions.cs (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -0,0 +1,423 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using Core.Common.Base.Data; +using log4net; +using Ringtoets.Common.Data.Probabilistics; +using Ringtoets.Common.IO.Properties; + +namespace Ringtoets.Common.IO.Configurations.Helpers +{ + /// + /// Extension methods for converting to . + /// + public static class DistributionConversionExtensions + { + private static readonly ILog log = LogManager.GetLogger(typeof(DistributionConversionExtensions)); + + /// + /// Configure a new with + /// and + /// taken from + /// . + /// + /// The distribution to take the values from. + /// A new with + /// and + /// set. + /// Thrown when is null. + public static MeanStandardDeviationStochastConfiguration ToStochastConfiguration(this IDistribution distribution) + { + if (distribution == null) + { + throw new ArgumentNullException(nameof(distribution)); + } + return new MeanStandardDeviationStochastConfiguration + { + Mean = distribution.Mean, + StandardDeviation = distribution.StandardDeviation + }; + } + + /// + /// Configure a new with + /// taken from + /// . + /// + /// The distribution to take the values from. + /// A new with + /// set. + /// Thrown when is null. + public static MeanStandardDeviationStochastConfiguration ToStochastConfigurationWithMean(this IDistribution distribution) + { + if (distribution == null) + { + throw new ArgumentNullException(nameof(distribution)); + } + return new MeanStandardDeviationStochastConfiguration + { + Mean = distribution.Mean + }; + } + + /// + /// Configure a new with + /// taken from + /// . + /// + /// The distribution to take the values from. + /// A new with + /// set. + /// Thrown when is null. + public static MeanStandardDeviationStochastConfiguration ToStochastConfigurationWithStandardDeviation(this IDistribution distribution) + { + if (distribution == null) + { + throw new ArgumentNullException(nameof(distribution)); + } + return new MeanStandardDeviationStochastConfiguration + { + StandardDeviation = distribution.StandardDeviation + }; + } + + /// + /// Configure a new with + /// and + /// taken from + /// . + /// + /// The distribution to take the values from. + /// A new with + /// and + /// set. + /// Thrown when is null. + public static MeanVariationCoefficientStochastConfiguration ToStochastConfiguration(this IVariationCoefficientDistribution distribution) + { + if (distribution == null) + { + throw new ArgumentNullException(nameof(distribution)); + } + return new MeanVariationCoefficientStochastConfiguration + { + Mean = distribution.Mean, + VariationCoefficient = distribution.CoefficientOfVariation + }; + } + + /// + /// Configure a new with + /// taken from + /// . + /// + /// The distribution to take the values from. + /// A new with + /// set. + /// Thrown when is null. + public static MeanVariationCoefficientStochastConfiguration ToStochastConfigurationWithMean(this IVariationCoefficientDistribution distribution) + { + if (distribution == null) + { + throw new ArgumentNullException(nameof(distribution)); + } + return new MeanVariationCoefficientStochastConfiguration + { + Mean = distribution.Mean + }; + } + + /// + /// Configure a new with + /// taken from + /// . + /// + /// The distribution to take the values from. + /// A new with + /// set. + /// Thrown when is null. + public static MeanVariationCoefficientStochastConfiguration ToStochastConfigurationWithVariationCoefficient(this IVariationCoefficientDistribution distribution) + { + if (distribution == null) + { + throw new ArgumentNullException(nameof(distribution)); + } + return new MeanVariationCoefficientStochastConfiguration + { + VariationCoefficient = distribution.CoefficientOfVariation + }; + } + + /// + /// Attempts to set the parameters of an . + /// + /// The to be updated. + /// The new value for . + /// The new value for . + /// The descriptive name of . + /// The name of the calculation to which + /// is associated. + /// true if setting all properties was successful, false otherwise. + /// Thrown when + /// is null. + public static bool TrySetDistributionProperties(this IDistribution distribution, + double? mean, double? standardDeviation, + string stochastName, string calculationName) + { + return distribution.TrySetMean(mean, stochastName, calculationName) + && distribution.TrySetStandardDeviation(standardDeviation, stochastName, calculationName); + } + + /// + /// Attempts to set the parameters of an . + /// + /// The to be updated. + /// The configuration containing the new values for + /// and . + /// The descriptive name of . + /// The name of the calculation to which + /// is associated. + /// true if setting all properties was successful, false otherwise. + /// Thrown when + /// is null. + public static bool TrySetDistributionProperties(this IDistribution distribution, + MeanStandardDeviationStochastConfiguration configuration, + string stochastName, string calculationName) + { + return distribution.TrySetMean(configuration.Mean, stochastName, calculationName) + && distribution.TrySetStandardDeviation(configuration.StandardDeviation, stochastName, calculationName); + } + + /// + /// Attempts to set . + /// + /// The to be updated. + /// The new value for . + /// The descriptive name of . + /// The name of the calculation to which + /// is associated. + /// true if setting was successful, + /// false otherwise. + /// Thrown when + /// is null. + public static bool TrySetMean(this IDistribution distribution, double? mean, + string stochastName, string calculationName) + { + if (distribution == null) + { + throw new ArgumentNullException(nameof(distribution)); + } + + if (mean.HasValue) + { + try + { + distribution.Mean = (RoundedDouble)mean.Value; + } + catch (ArgumentOutOfRangeException e) + { + string errorMessage = string.Format( + Resources.IDistributionExtensions_TrySetMean_Mean_0_is_invalid_for_Stochast_1_, + mean, stochastName); + + LogOutOfRangeException(errorMessage, + calculationName, + e); + + return false; + } + } + return true; + } + + /// + /// Attempts to set . + /// + /// The to be updated. + /// The new value for . + /// The descriptive name of . + /// The name of the calculation to which + /// is associated. + /// true if setting + /// was successful, false otherwise. + /// Thrown when + /// is null. + public static bool TrySetStandardDeviation(this IDistribution distribution, double? standardDeviation, + string stochastName, string calculationName) + { + if (distribution == null) + { + throw new ArgumentNullException(nameof(distribution)); + } + + if (standardDeviation.HasValue) + { + try + { + distribution.StandardDeviation = (RoundedDouble)standardDeviation.Value; + } + catch (ArgumentOutOfRangeException e) + { + string errorMessage = string.Format( + Resources.IDistributionExtensions_TrySetStandardDeviation_StandardDeviation_0_is_invalid_for_Stochast_1_, + standardDeviation, stochastName); + + LogOutOfRangeException(errorMessage, + calculationName, + e); + + return false; + } + } + return true; + } + + /// + /// Attempts to set the parameters of an . + /// + /// The to be updated. + /// The new value for . + /// The new value for . + /// The descriptive name of . + /// The name of the calculation to which + /// is associated. + /// true if setting all properties was successful, false otherwise. + /// Thrown when + /// is null. + public static bool TrySetDistributionProperties(this IVariationCoefficientDistribution distribution, + double? mean, double? variationCoefficient, + string stochastName, string calculationName) + { + return distribution.TrySetMean(mean, stochastName, calculationName) + && distribution.TrySetVariationCoefficient(variationCoefficient, stochastName, calculationName); + } + + /// + /// Attempts to set the parameters of an . + /// + /// The to be updated. + /// The configuration containing the new values for + /// and . + /// The descriptive name of . + /// The name of the calculation to which + /// is associated. + /// true if setting all properties was successful, false otherwise. + /// Thrown when + /// is null. + public static bool TrySetDistributionProperties(this IVariationCoefficientDistribution distribution, + MeanVariationCoefficientStochastConfiguration configuration, + string stochastName, string calculationName) + { + return distribution.TrySetMean(configuration.Mean, stochastName, calculationName) + && distribution.TrySetVariationCoefficient(configuration.VariationCoefficient, stochastName, calculationName); + } + + /// + /// Attempts to set . + /// + /// The to be updated. + /// The new value for . + /// The descriptive name of . + /// The name of the calculation to which + /// is associated. + /// true if setting was successful, + /// false otherwise. + /// Thrown when + /// is null. + public static bool TrySetMean(this IVariationCoefficientDistribution distribution, double? mean, + string stochastName, string calculationName) + { + if (distribution == null) + { + throw new ArgumentNullException(nameof(distribution)); + } + + if (mean.HasValue) + { + try + { + distribution.Mean = (RoundedDouble)mean.Value; + } + catch (ArgumentOutOfRangeException e) + { + string errorMessage = string.Format( + Resources.IVariationCoefficientDistributionExtensions_TrySetMean_Mean_0_is_invalid_for_Stochast_1_, + mean, stochastName); + + LogOutOfRangeException(errorMessage, + calculationName, + e); + + return false; + } + } + return true; + } + + /// + /// Attempts to set . + /// + /// The to be updated. + /// The new value for . + /// The descriptive name of . + /// The name of the calculation to which + /// is associated. + /// true if setting + /// was successful, false otherwise. + /// Thrown when + /// is null. + public static bool TrySetVariationCoefficient(this IVariationCoefficientDistribution distribution, double? variationCoefficient, + string stochastName, string calculationName) + { + if (distribution == null) + { + throw new ArgumentNullException(nameof(distribution)); + } + + if (variationCoefficient.HasValue) + { + try + { + distribution.CoefficientOfVariation = (RoundedDouble)variationCoefficient.Value; + } + catch (ArgumentOutOfRangeException e) + { + string errorMessage = string.Format( + Resources.IVariationCoefficientDistributionExtensions_TrySetVariationCoefficient_VariationCoefficient_0_is_invalid_for_Stochast_1_, + variationCoefficient, stochastName); + + LogOutOfRangeException(errorMessage, + calculationName, + e); + + return false; + } + } + return true; + } + + private static void LogOutOfRangeException(string errorMessage, string calculationName, ArgumentOutOfRangeException e) + { + log.ErrorFormat(Resources.CalculationConfigurationImporter_ValidateCalculation_ErrorMessage_0_Calculation_1_skipped, + $"{errorMessage} {e.Message}", calculationName); + } + } +} \ No newline at end of file Fisheye: Tag 512bebcd5570951b18657513c56843d9e2f8e969 refers to a dead (removed) revision in file `Ringtoets/Common/src/Ringtoets.Common.IO/Configurations/Helpers/IDistributionExtensions.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 512bebcd5570951b18657513c56843d9e2f8e969 refers to a dead (removed) revision in file `Ringtoets/Common/src/Ringtoets.Common.IO/Configurations/Helpers/IVariationCoefficientDistributionExtensions.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 512bebcd5570951b18657513c56843d9e2f8e969 refers to a dead (removed) revision in file `Ringtoets/Common/src/Ringtoets.Common.IO/IDistributionExtensions.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 512bebcd5570951b18657513c56843d9e2f8e969 refers to a dead (removed) revision in file `Ringtoets/Common/src/Ringtoets.Common.IO/IVariationCoefficientDistributionExtensions.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Common/src/Ringtoets.Common.IO/Properties/Resources.Designer.cs =================================================================== diff -u -r562b4d8e37190d011089b77ddb28912e004bfdd9 -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/Common/src/Ringtoets.Common.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 562b4d8e37190d011089b77ddb28912e004bfdd9) +++ Ringtoets/Common/src/Ringtoets.Common.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -92,6 +92,16 @@ } /// + /// Looks up a localized string similar to faalkans gegeven erosie bodem. + /// + public static string CalculationConfigurationImporter_FailureProbabilityStructureWithErosion_DisplayName { + get { + return ResourceManager.GetString("CalculationConfigurationImporter_FailureProbabilityStructureWithErosion_DisplayNa" + + "me", resourceCulture); + } + } + + /// /// Looks up a localized string similar to {0} ///Er is geen berekeningenconfiguratie geïmporteerd.. /// @@ -113,6 +123,15 @@ } /// + /// Looks up a localized string similar to oriëntatie. + /// + public static string CalculationConfigurationImporter_Orientation_DisplayName { + get { + return ResourceManager.GetString("CalculationConfigurationImporter_Orientation_DisplayName", resourceCulture); + } + } + + /// /// Looks up a localized string similar to Inlezen berekeningenconfiguratie.. /// public static string CalculationConfigurationImporter_ProgressText_Reading_configuration { @@ -131,6 +150,16 @@ } /// + /// Looks up a localized string similar to Het voorlandprofiel '{0}' bestaat niet.. + /// + public static string CalculationConfigurationImporter_ReadForeshoreProfile_ForeshoreProfile_0_does_not_exist { + get { + return ResourceManager.GetString("CalculationConfigurationImporter_ReadForeshoreProfile_ForeshoreProfile_0_does_not" + + "_exist", resourceCulture); + } + } + + /// /// Looks up a localized string similar to De locatie met hydraulische randvoorwaarden '{0}' bestaat niet.. /// public static string CalculationConfigurationImporter_ReadHydraulicBoundaryLocation_HydraulicBoundaryLocation_0_does_not_exist { @@ -150,6 +179,16 @@ } /// + /// Looks up a localized string similar to Er is geen kunstwerk opgegeven om de {0} aan toe te voegen.. + /// + public static string CalculationConfigurationImporter_TryParameter_No_Structure_to_assign_Parameter_0_ { + get { + return ResourceManager.GetString("CalculationConfigurationImporter_TryParameter_No_Structure_to_assign_Parameter_0_" + + "", resourceCulture); + } + } + + /// /// Looks up a localized string similar to {0} Berekening '{1}' is overgeslagen.. /// public static string CalculationConfigurationImporter_ValidateCalculation_ErrorMessage_0_Calculation_1_skipped { @@ -160,6 +199,16 @@ } /// + /// Looks up a localized string similar to Er is geen voorlandprofiel opgegeven om golfreductie parameters aan toe te voegen.. + /// + public static string CalculationConfigurationImporter_ValidateWaveReduction_No_foreshore_profile_provided { + get { + return ResourceManager.GetString("CalculationConfigurationImporter_ValidateWaveReduction_No_foreshore_profile_provi" + + "ded", resourceCulture); + } + } + + /// /// Looks up a localized string similar to Het XML-document dat de configuratie voor de berekeningen beschrijft is niet geldig. De validatie geeft de volgende melding op regel {0}, positie {1}: {2}. /// public static string CalculationConfigurationReader_Configuration_contains_no_valid_xml_line_0_position_1_reason_2 { @@ -675,6 +724,26 @@ } /// + /// Looks up a localized string similar to Er is geen kunstwerk opgegeven om de faalkans gegeven erosie bodem aan toe te voegen.. + /// + public static string HeightStructuresCalculationConfigurationImporter_TryReadFailureProbabilityStructureWithErosion_No_Structure_to_assign_FailureProbabilityStructureWithErosion { + get { + return ResourceManager.GetString("HeightStructuresCalculationConfigurationImporter_TryReadFailureProbabilityStructu" + + "reWithErosion_No_Structure_to_assign_FailureProbabilityStructureWithErosion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Er is geen kunstwerk opgegeven om de oriëntatie aan toe te voegen.. + /// + public static string HeightStructuresCalculationConfigurationImporter_TryReadOrientation_No_Structure_to_assign_Orientation { + get { + return ResourceManager.GetString("HeightStructuresCalculationConfigurationImporter_TryReadOrientation_No_Structure_" + + "to_assign_Orientation", resourceCulture); + } + } + + /// /// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8"?> /// ///<!-- @@ -1115,6 +1184,15 @@ } /// + /// Looks up a localized string similar to Het opgegeven voorlandprofiel '{0}' heeft geen voorlandgeometrie en kan daarom niet gebruikt worden.. + /// + public static string ReadForeshoreProfile_ForeshoreProfile_0_has_no_geometry_and_cannot_be_used { + get { + return ResourceManager.GetString("ReadForeshoreProfile_ForeshoreProfile_0_has_no_geometry_and_cannot_be_used", resourceCulture); + } + } + + /// /// Looks up a localized string similar to {0} ///Er is geen referentielijn geëxporteerd.. /// @@ -1679,6 +1757,15 @@ } /// + /// Looks up a localized string similar to Een waarde van '{0}' als {1} is ongeldig.. + /// + public static string TryReadParameter_Value_0_ParameterName_1_is_invalid { + get { + return ResourceManager.GetString("TryReadParameter_Value_0_ParameterName_1_is_invalid", resourceCulture); + } + } + + /// /// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8"?><!-- ///Copyright (C) Stichting Deltares 2016. All rights reserved. /// Index: Ringtoets/Common/src/Ringtoets.Common.IO/Properties/Resources.resx =================================================================== diff -u -r562b4d8e37190d011089b77ddb28912e004bfdd9 -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/Common/src/Ringtoets.Common.IO/Properties/Resources.resx (.../Resources.resx) (revision 562b4d8e37190d011089b77ddb28912e004bfdd9) +++ Ringtoets/Common/src/Ringtoets.Common.IO/Properties/Resources.resx (.../Resources.resx) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -586,4 +586,31 @@ ..\resources\stochastvariatiecoefficientschema.xsd;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 + + Een waarde van '{0}' als {1} is ongeldig. + + + oriëntatie + + + Het voorlandprofiel '{0}' bestaat niet. + + + Er is geen voorlandprofiel opgegeven om golfreductie parameters aan toe te voegen. + + + Er is geen kunstwerk opgegeven om de oriëntatie aan toe te voegen. + + + Er is geen kunstwerk opgegeven om de faalkans gegeven erosie bodem aan toe te voegen. + + + faalkans gegeven erosie bodem + + + Er is geen kunstwerk opgegeven om de {0} aan toe te voegen. + + + Het opgegeven voorlandprofiel '{0}' heeft geen voorlandgeometrie en kan daarom niet gebruikt worden. + \ No newline at end of file Index: Ringtoets/Common/src/Ringtoets.Common.IO/Ringtoets.Common.IO.csproj =================================================================== diff -u -rc0c4d914f97d3471b73898030db0066dced39331 -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/Common/src/Ringtoets.Common.IO/Ringtoets.Common.IO.csproj (.../Ringtoets.Common.IO.csproj) (revision c0c4d914f97d3471b73898030db0066dced39331) +++ Ringtoets/Common/src/Ringtoets.Common.IO/Ringtoets.Common.IO.csproj (.../Ringtoets.Common.IO.csproj) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -54,14 +54,11 @@ - - + - - Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/DistributionConversionExtensionsTest.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/DistributionConversionExtensionsTest.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/DistributionConversionExtensionsTest.cs (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -0,0 +1,815 @@ +// Copyright (C) Stichting Deltares 2016. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using Core.Common.Base.Data; +using Core.Common.TestUtil; +using NUnit.Framework; +using Rhino.Mocks; +using Ringtoets.Common.Data.Probabilistics; +using Ringtoets.Common.IO.Configurations; +using Ringtoets.Common.IO.Configurations.Helpers; + +namespace Ringtoets.Common.IO.Test.Configurations +{ + [TestFixture] + public class DistributionConversionExtensionsTest + { + [Test] + public void ToStochastConfiguration_DistributionNull_ThrowsArgumentNullException() + { + // Setup + IDistribution distribution = null; + + // Call + TestDelegate test = () => distribution.ToStochastConfiguration(); + + // Assert + var exception = Assert.Throws(test); + Assert.AreEqual("distribution", exception.ParamName); + } + + [Test] + public void ToStochastConfiguration_WithDistribution_InstanceWithExpectedParametersSet() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.Stub(); + mocks.ReplayAll(); + + var random = new Random(21); + RoundedDouble mean = random.NextRoundedDouble(); + RoundedDouble standardDeviation = random.NextRoundedDouble(); + + distribution.Mean = mean; + distribution.StandardDeviation = standardDeviation; + + // Call + MeanStandardDeviationStochastConfiguration configuration = distribution.ToStochastConfiguration(); + + // Assert + Assert.AreEqual(mean, configuration.Mean); + Assert.AreEqual(standardDeviation, configuration.StandardDeviation); + } + + [Test] + public void ToStochastConfigurationWithMean_DistributionNull_ThrowsArgumentNullException() + { + // Setup + IDistribution distribution = null; + + // Call + TestDelegate test = () => distribution.ToStochastConfigurationWithMean(); + + // Assert + var exception = Assert.Throws(test); + Assert.AreEqual("distribution", exception.ParamName); + } + + [Test] + public void ToStochastConfigurationWithMean_WithDistribution_InstanceWithExpectedParametersSet() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.Stub(); + mocks.ReplayAll(); + + var random = new Random(21); + RoundedDouble mean = random.NextRoundedDouble(); + + distribution.Mean = mean; + + // Call + MeanStandardDeviationStochastConfiguration configuration = distribution.ToStochastConfigurationWithMean(); + + // Assert + Assert.AreEqual(mean, configuration.Mean); + Assert.IsNull(configuration.StandardDeviation); + } + + [Test] + public void ToStochastConfigurationWithStandardDeviation_DistributionNull_ThrowsArgumentNullException() + { + // Setup + IDistribution distribution = null; + + // Call + TestDelegate test = () => distribution.ToStochastConfigurationWithStandardDeviation(); + + // Assert + var exception = Assert.Throws(test); + Assert.AreEqual("distribution", exception.ParamName); + } + + [Test] + public void ToStochastConfigurationWithStandardDeviation_WithDistribution_InstanceWithExpectedParametersSet() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.Stub(); + mocks.ReplayAll(); + + var random = new Random(21); + RoundedDouble StandardDeviation = random.NextRoundedDouble(); + + distribution.StandardDeviation = StandardDeviation; + + // Call + MeanStandardDeviationStochastConfiguration configuration = distribution.ToStochastConfigurationWithStandardDeviation(); + + // Assert + Assert.IsNull(configuration.Mean); + Assert.AreEqual(StandardDeviation, configuration.StandardDeviation); + } + + [Test] + public void ToStochastConfiguration_VariationCoefficientDistributionNull_ThrowsArgumentNullException() + { + // Setup + IVariationCoefficientDistribution distribution = null; + + // Call + TestDelegate test = () => distribution.ToStochastConfiguration(); + + // Assert + var exception = Assert.Throws(test); + Assert.AreEqual("distribution", exception.ParamName); + } + + [Test] + public void ToStochastConfiguration_WithVariationCoefficientDistribution_InstanceWithExpectedParametersSet() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.Stub(); + mocks.ReplayAll(); + + var random = new Random(21); + RoundedDouble mean = random.NextRoundedDouble(); + RoundedDouble variationCoefficient = random.NextRoundedDouble(); + + distribution.Mean = mean; + distribution.CoefficientOfVariation = variationCoefficient; + + // Call + MeanVariationCoefficientStochastConfiguration configuration = distribution.ToStochastConfiguration(); + + // Assert + Assert.AreEqual(mean, configuration.Mean); + Assert.AreEqual(variationCoefficient, configuration.VariationCoefficient); + } + + [Test] + public void ToStochastConfigurationWithMean_VariationCoefficientDistributionNull_ThrowsArgumentNullException() + { + // Setup + IVariationCoefficientDistribution distribution = null; + + // Call + TestDelegate test = () => distribution.ToStochastConfigurationWithMean(); + + // Assert + var exception = Assert.Throws(test); + Assert.AreEqual("distribution", exception.ParamName); + } + + [Test] + public void ToStochastConfigurationWithMean_WithVariationCoefficientDistribution_InstanceWithExpectedParametersSet() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.Stub(); + mocks.ReplayAll(); + + var random = new Random(21); + RoundedDouble mean = random.NextRoundedDouble(); + + distribution.Mean = mean; + + // Call + MeanVariationCoefficientStochastConfiguration configuration = distribution.ToStochastConfigurationWithMean(); + + // Assert + Assert.AreEqual(mean, configuration.Mean); + Assert.IsNull(configuration.VariationCoefficient); + } + + [Test] + public void ToStochastConfigurationWithVariationCoefficient_DistributionNull_ThrowsArgumentNullException() + { + // Setup + IVariationCoefficientDistribution distribution = null; + + // Call + TestDelegate test = () => distribution.ToStochastConfigurationWithVariationCoefficient(); + + // Assert + var exception = Assert.Throws(test); + Assert.AreEqual("distribution", exception.ParamName); + } + + [Test] + public void ToStochastConfigurationWithVariationCoefficient_WithDistribution_InstanceWithExpectedParametersSet() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.Stub(); + mocks.ReplayAll(); + + var random = new Random(21); + RoundedDouble variationCoefficient = random.NextRoundedDouble(); + + distribution.CoefficientOfVariation = variationCoefficient; + + // Call + MeanVariationCoefficientStochastConfiguration configuration = distribution.ToStochastConfigurationWithVariationCoefficient(); + + // Assert + Assert.IsNull(configuration.Mean); + Assert.AreEqual(variationCoefficient, configuration.VariationCoefficient); + } + + [Test] + public void TrySetMean_DistributionNull_ThrownArgumentNullException() + { + // Setup + IDistribution distribution = null; + + const double mean = 1.1; + + // Call + TestDelegate call = () => distribution.TrySetMean(mean, "A", "B"); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("distribution", paramName); + } + + [Test] + public void TrySetMean_DistributionMeanNull_ReturnTrue() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.StrictMock(); + mocks.ReplayAll(); + + // Call + bool result = distribution.TrySetMean(null, "A", "B"); + + // Assert + Assert.IsTrue(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetMean_DistributionMeanValid_SetMeanAndReturnTrue() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.Stub(); + mocks.ReplayAll(); + + const double mean = 1.1; + + // Call + bool result = distribution.TrySetMean(mean, "A", "B"); + + // Assert + Assert.AreEqual(mean, distribution.Mean); + Assert.IsTrue(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetMean_SettingDistributionMeanThrowArgumentOutOfRangeException_LogErrorAndReturnFalse() + { + // Setup + const string exceptionMessage = "A"; + var mocks = new MockRepository(); + var distribution = mocks.StrictMock(); + distribution.Expect(d => d.Mean) + .SetPropertyAndIgnoreArgument() + .Throw(new ArgumentOutOfRangeException(null, exceptionMessage)); + mocks.ReplayAll(); + + const int mean = 5; + const string stochastName = "B"; + const string calculationName = "C"; + + // Call + bool result = true; + Action call = () => result = distribution.TrySetMean(mean, "B", "C"); + + // Assert + var expectedMessage = Tuple.Create($"Een gemiddelde van '{mean}' is ongeldig voor stochast '{stochastName}'. " + + exceptionMessage + + $" Berekening '{calculationName}' is overgeslagen.", + LogLevelConstant.Error); + TestHelper.AssertLogMessageWithLevelIsGenerated(call, expectedMessage, 1); + Assert.IsFalse(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetStandardDeviation_DistributionNull_ThrownArgumentNullException() + { + // Setup + IDistribution distribution = null; + + const double mean = 1.1; + + // Call + TestDelegate call = () => distribution.TrySetStandardDeviation(mean, "A", "B"); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("distribution", paramName); + } + + [Test] + public void TrySetStandardDeviation_DistributionStandardDeviationNull_ReturnTrue() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.StrictMock(); + mocks.ReplayAll(); + + // Call + bool result = distribution.TrySetStandardDeviation(null, "A", "B"); + + // Assert + Assert.IsTrue(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetStandardDeviation_DistributionStandardDeviationValid_SetStandardDeviationAndReturnTrue() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.Stub(); + mocks.ReplayAll(); + + const double standardDeviation = 1.1; + + // Call + bool result = distribution.TrySetStandardDeviation(standardDeviation, "A", "B"); + + // Assert + Assert.AreEqual(standardDeviation, distribution.StandardDeviation); + Assert.IsTrue(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetStandardDeviation_SettingDistributionStandardDeviationThrowArgumentOutOfRangeException_LogErrorAndReturnFalse() + { + // Setup + const string exceptionMessage = "A"; + var mocks = new MockRepository(); + var distribution = mocks.StrictMock(); + distribution.Expect(d => d.StandardDeviation) + .SetPropertyAndIgnoreArgument() + .Throw(new ArgumentOutOfRangeException(null, exceptionMessage)); + mocks.ReplayAll(); + + const int standardDeviation = 5; + const string stochastName = "B"; + const string calculationName = "C"; + + // Call + bool result = true; + Action call = () => result = distribution.TrySetStandardDeviation(standardDeviation, "B", "C"); + + // Assert + var expectedMessage = Tuple.Create($"Een standaardafwijking van '{standardDeviation}' is ongeldig voor stochast '{stochastName}'. " + + exceptionMessage + + $" Berekening '{calculationName}' is overgeslagen.", + LogLevelConstant.Error); + TestHelper.AssertLogMessageWithLevelIsGenerated(call, expectedMessage, 1); + Assert.IsFalse(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetDistributionProperties_DistributionNull_ThrownArgumentNullException() + { + // Setup + IDistribution distribution = null; + + const double mean = 1.1; + const double standardDeviation = 2.2; + + // Call + TestDelegate call = () => distribution.TrySetDistributionProperties(mean, standardDeviation, "A", "B"); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("distribution", paramName); + } + + [Test] + [TestCase(null, null)] + [TestCase(1.0, null)] + [TestCase(null, 2.0)] + [TestCase(3.0, 4.0)] + public void TrySetMean_DistributionMeanValidValue_ReturnTrue(double? mean, double? standardDeviation) + { + // Setup + var defaultMean = new RoundedDouble(2, -1.0); + var defaultStandardDeviation = new RoundedDouble(2, -2.0); + + var mocks = new MockRepository(); + var distribution = mocks.Stub(); + mocks.ReplayAll(); + + distribution.Mean = defaultMean; + distribution.StandardDeviation = defaultStandardDeviation; + + // Call + bool result = distribution.TrySetDistributionProperties(mean, standardDeviation, "A", "B"); + + // Assert + Assert.IsTrue(result); + + Assert.AreEqual(mean ?? defaultMean.Value, distribution.Mean.Value); + Assert.AreEqual(standardDeviation ?? defaultStandardDeviation.Value, distribution.StandardDeviation.Value); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetDistributionProperties_SettingDistributionMeanThrowArgumentOutOfRangeException_LogErrorAndReturnFalse() + { + // Setup + const string exceptionMessage = "A"; + var mocks = new MockRepository(); + var distribution = mocks.StrictMock(); + distribution.Expect(d => d.Mean) + .SetPropertyAndIgnoreArgument() + .Throw(new ArgumentOutOfRangeException(null, exceptionMessage)); + distribution.Stub(d => d.StandardDeviation) + .SetPropertyAndIgnoreArgument() + .Repeat.Any(); + mocks.ReplayAll(); + + const int mean = 5; + const string stochastName = "B"; + const string calculationName = "C"; + + // Call + bool result = true; + Action call = () => result = distribution.TrySetDistributionProperties(mean, 2.2, "B", "C"); + + // Assert + var expectedMessage = Tuple.Create($"Een gemiddelde van '{mean}' is ongeldig voor stochast '{stochastName}'. " + + exceptionMessage + + $" Berekening '{calculationName}' is overgeslagen.", + LogLevelConstant.Error); + TestHelper.AssertLogMessageWithLevelIsGenerated(call, expectedMessage, 1); + Assert.IsFalse(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetDistributionProperties_SettingDistributionStandardDeviationThrowArgumentOutOfRangeException_LogErrorAndReturnFalse() + { + // Setup + const string exceptionMessage = "A"; + var mocks = new MockRepository(); + var distribution = mocks.StrictMock(); + distribution.Expect(d => d.StandardDeviation) + .SetPropertyAndIgnoreArgument() + .Throw(new ArgumentOutOfRangeException(null, exceptionMessage)); + distribution.Stub(d => d.Mean) + .SetPropertyAndIgnoreArgument() + .Repeat.Any(); + mocks.ReplayAll(); + + const int standardDeviation = 5; + const string stochastName = "B"; + const string calculationName = "C"; + + // Call + bool result = true; + Action call = () => result = distribution.TrySetDistributionProperties(1.1, standardDeviation, "B", "C"); + + // Assert + var expectedMessage = Tuple.Create($"Een standaardafwijking van '{standardDeviation}' is ongeldig voor stochast '{stochastName}'. " + + exceptionMessage + + $" Berekening '{calculationName}' is overgeslagen.", + LogLevelConstant.Error); + TestHelper.AssertLogMessageWithLevelIsGenerated(call, expectedMessage, 1); + Assert.IsFalse(result); + + mocks.VerifyAll(); + } + [Test] + public void TrySetMean_VariationCoefficientDistributionNull_ThrownArgumentNullException() + { + // Setup + IVariationCoefficientDistribution distribution = null; + + const double mean = 1.1; + + // Call + TestDelegate call = () => distribution.TrySetMean(mean, "A", "B"); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("distribution", paramName); + } + + [Test] + public void TrySetMean_VariationCoefficientDistributionMeanNull_ReturnTrue() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.StrictMock(); + mocks.ReplayAll(); + + // Call + bool result = distribution.TrySetMean(null, "A", "B"); + + // Assert + Assert.IsTrue(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetMean_VariationCoefficientDistributionMeanValid_SetMeanAndReturnTrue() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.Stub(); + mocks.ReplayAll(); + + const double mean = 1.1; + + // Call + bool result = distribution.TrySetMean(mean, "A", "B"); + + // Assert + Assert.AreEqual(mean, distribution.Mean); + Assert.IsTrue(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetMean_SettingVariationCoefficientDistributionMeanThrowArgumentOutOfRangeException_LogErrorAndReturnFalse() + { + // Setup + const string exceptionMessage = "A"; + var mocks = new MockRepository(); + var distribution = mocks.StrictMock(); + distribution.Expect(d => d.Mean) + .SetPropertyAndIgnoreArgument() + .Throw(new ArgumentOutOfRangeException(null, exceptionMessage)); + mocks.ReplayAll(); + + const int mean = 5; + const string stochastName = "B"; + const string calculationName = "C"; + + // Call + bool result = true; + Action call = () => result = distribution.TrySetMean(mean, "B", "C"); + + // Assert + var expectedMessage = Tuple.Create($"Een gemiddelde van '{mean}' is ongeldig voor stochast '{stochastName}'. " + + exceptionMessage + + $" Berekening '{calculationName}' is overgeslagen.", + LogLevelConstant.Error); + TestHelper.AssertLogMessageWithLevelIsGenerated(call, expectedMessage, 1); + Assert.IsFalse(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetVariationCoefficient_VariationCoefficientDistributionNull_ThrownArgumentNullException() + { + // Setup + IVariationCoefficientDistribution distribution = null; + + const double mean = 1.1; + + // Call + TestDelegate call = () => distribution.TrySetVariationCoefficient(mean, "A", "B"); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("distribution", paramName); + } + + [Test] + public void TrySetVariationCoefficient_VariationCoefficientDistributionVariationCoefficientNull_ReturnTrue() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.StrictMock(); + mocks.ReplayAll(); + + // Call + bool result = distribution.TrySetVariationCoefficient(null, "A", "B"); + + // Assert + Assert.IsTrue(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetVariationCoefficient_VariationCoefficientDistributionVariationCoefficientValid_SetVariationCoefficientAndReturnTrue() + { + // Setup + var mocks = new MockRepository(); + var distribution = mocks.Stub(); + mocks.ReplayAll(); + + const double variationCoefficient = 1.1; + + // Call + bool result = distribution.TrySetVariationCoefficient(variationCoefficient, "A", "B"); + + // Assert + Assert.AreEqual(variationCoefficient, distribution.CoefficientOfVariation); + Assert.IsTrue(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetVariationCoefficient_SettingVariationCoefficientDistributionVariationCoefficientThrowArgumentOutOfRangeException_LogErrorAndReturnFalse() + { + // Setup + const string exceptionMessage = "A"; + var mocks = new MockRepository(); + var distribution = mocks.StrictMock(); + distribution.Expect(d => d.CoefficientOfVariation) + .SetPropertyAndIgnoreArgument() + .Throw(new ArgumentOutOfRangeException(null, exceptionMessage)); + mocks.ReplayAll(); + + const int variationCoefficient = 5; + const string stochastName = "B"; + const string calculationName = "C"; + + // Call + bool result = true; + Action call = () => result = distribution.TrySetVariationCoefficient(variationCoefficient, "B", "C"); + + // Assert + var expectedMessage = Tuple.Create($"Een variatiecoëfficiënt van '{variationCoefficient}' is ongeldig voor stochast '{stochastName}'. " + + exceptionMessage + + $" Berekening '{calculationName}' is overgeslagen.", + LogLevelConstant.Error); + TestHelper.AssertLogMessageWithLevelIsGenerated(call, expectedMessage, 1); + Assert.IsFalse(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetDistributionProperties_VariationCoefficientDistributionNull_ThrownArgumentNullException() + { + // Setup + IVariationCoefficientDistribution distribution = null; + + const double mean = 1.1; + const double variationCoefficient = 2.2; + + // Call + TestDelegate call = () => distribution.TrySetDistributionProperties(mean, variationCoefficient, "A", "B"); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("distribution", paramName); + } + + [Test] + [TestCase(null, null)] + [TestCase(1.0, null)] + [TestCase(null, 2.0)] + [TestCase(3.0, 4.0)] + public void TrySetMean_VariationCoefficientDistributionMeanValidValue_ReturnTrue(double? mean, double? variationCoefficient) + { + // Setup + var defaultMean = new RoundedDouble(2, -1.0); + var defaultVariationCoefficient = new RoundedDouble(2, -2.0); + + var mocks = new MockRepository(); + var distribution = mocks.Stub(); + mocks.ReplayAll(); + + distribution.Mean = defaultMean; + distribution.CoefficientOfVariation = defaultVariationCoefficient; + + // Call + bool result = distribution.TrySetDistributionProperties(mean, variationCoefficient, "A", "B"); + + // Assert + Assert.IsTrue(result); + + Assert.AreEqual(mean ?? defaultMean.Value, distribution.Mean.Value); + Assert.AreEqual(variationCoefficient ?? defaultVariationCoefficient.Value, distribution.CoefficientOfVariation.Value); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetDistributionProperties_SettingVariationCoefficientDistributionMeanThrowArgumentOutOfRangeException_LogErrorAndReturnFalse() + { + // Setup + const string exceptionMessage = "A"; + var mocks = new MockRepository(); + var distribution = mocks.StrictMock(); + distribution.Expect(d => d.Mean) + .SetPropertyAndIgnoreArgument() + .Throw(new ArgumentOutOfRangeException(null, exceptionMessage)); + distribution.Stub(d => d.CoefficientOfVariation) + .SetPropertyAndIgnoreArgument() + .Repeat.Any(); + mocks.ReplayAll(); + + const int mean = 5; + const string stochastName = "B"; + const string calculationName = "C"; + + // Call + bool result = true; + Action call = () => result = distribution.TrySetDistributionProperties(mean, 2.2, "B", "C"); + + // Assert + var expectedMessage = Tuple.Create($"Een gemiddelde van '{mean}' is ongeldig voor stochast '{stochastName}'. " + + exceptionMessage + + $" Berekening '{calculationName}' is overgeslagen.", + LogLevelConstant.Error); + TestHelper.AssertLogMessageWithLevelIsGenerated(call, expectedMessage, 1); + Assert.IsFalse(result); + + mocks.VerifyAll(); + } + + [Test] + public void TrySetDistributionProperties_SettingVariationCoefficientDistributionVariationCoefficientThrowArgumentOutOfRangeException_LogErrorAndReturnFalse() + { + // Setup + const string exceptionMessage = "A"; + var mocks = new MockRepository(); + var distribution = mocks.StrictMock(); + distribution.Expect(d => d.CoefficientOfVariation) + .SetPropertyAndIgnoreArgument() + .Throw(new ArgumentOutOfRangeException(null, exceptionMessage)); + distribution.Stub(d => d.Mean) + .SetPropertyAndIgnoreArgument() + .Repeat.Any(); + mocks.ReplayAll(); + + const int variationCoefficient = 5; + const string stochastName = "B"; + const string calculationName = "C"; + + // Call + bool result = true; + Action call = () => result = distribution.TrySetDistributionProperties(1.1, variationCoefficient, "B", "C"); + + // Assert + var expectedMessage = Tuple.Create($"Een variatiecoëfficiënt van '{variationCoefficient}' is ongeldig voor stochast '{stochastName}'. " + + exceptionMessage + + $" Berekening '{calculationName}' is overgeslagen.", + LogLevelConstant.Error); + TestHelper.AssertLogMessageWithLevelIsGenerated(call, expectedMessage, 1); + Assert.IsFalse(result); + + mocks.VerifyAll(); + } + } +} \ No newline at end of file Fisheye: Tag 512bebcd5570951b18657513c56843d9e2f8e969 refers to a dead (removed) revision in file `Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/IDistributionExtensionsTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 512bebcd5570951b18657513c56843d9e2f8e969 refers to a dead (removed) revision in file `Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/IVariationCoefficientDistributionExtensionsTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 512bebcd5570951b18657513c56843d9e2f8e969 refers to a dead (removed) revision in file `Ringtoets/Common/test/Ringtoets.Common.IO.Test/IDistributionExtensionsTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 512bebcd5570951b18657513c56843d9e2f8e969 refers to a dead (removed) revision in file `Ringtoets/Common/test/Ringtoets.Common.IO.Test/IVariationCoefficientDistributionExtensionsTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/Ringtoets.Common.IO.Test.csproj =================================================================== diff -u -r8963d5e5c4a22feba25c4e936e6b67de7104cccd -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/Common/test/Ringtoets.Common.IO.Test/Ringtoets.Common.IO.Test.csproj (.../Ringtoets.Common.IO.Test.csproj) (revision 8963d5e5c4a22feba25c4e936e6b67de7104cccd) +++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/Ringtoets.Common.IO.Test.csproj (.../Ringtoets.Common.IO.Test.csproj) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -59,14 +59,11 @@ - - + - - Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Importers/GrassCoverErosionInwardsCalculationConfigurationImporter.cs =================================================================== diff -u -r5b07686bb3f89f1fa1017c4bf2cf8964ae9bd95c -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Importers/GrassCoverErosionInwardsCalculationConfigurationImporter.cs (.../GrassCoverErosionInwardsCalculationConfigurationImporter.cs) (revision 5b07686bb3f89f1fa1017c4bf2cf8964ae9bd95c) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Importers/GrassCoverErosionInwardsCalculationConfigurationImporter.cs (.../GrassCoverErosionInwardsCalculationConfigurationImporter.cs) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -27,7 +27,7 @@ using Ringtoets.Common.Data.DikeProfiles; using Ringtoets.Common.Data.Hydraulics; using Ringtoets.Common.Data.Probabilistics; -using Ringtoets.Common.IO; +using Ringtoets.Common.IO.Configurations.Helpers; using Ringtoets.Common.IO.FileImporters; using Ringtoets.GrassCoverErosionInwards.Data; using Ringtoets.GrassCoverErosionInwards.IO.Properties; Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.IO/HeightStructuresCalculationConfigurationImporter.cs =================================================================== diff -u -rc0c4d914f97d3471b73898030db0066dced39331 -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.IO/HeightStructuresCalculationConfigurationImporter.cs (.../HeightStructuresCalculationConfigurationImporter.cs) (revision c0c4d914f97d3471b73898030db0066dced39331) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.IO/HeightStructuresCalculationConfigurationImporter.cs (.../HeightStructuresCalculationConfigurationImporter.cs) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -28,12 +28,12 @@ using Ringtoets.Common.Data.Hydraulics; using Ringtoets.Common.Data.Probabilistics; using Ringtoets.Common.Data.Structures; -using Ringtoets.Common.IO; using Ringtoets.Common.IO.Configurations; using Ringtoets.Common.IO.Configurations.Helpers; using Ringtoets.Common.IO.FileImporters; using Ringtoets.Common.IO.Schema; using Ringtoets.HeightStructures.Data; +using Ringtoets.HeightStructures.IO.Properties; using RingtoetsCommonIOResources = Ringtoets.Common.IO.Properties.Resources; namespace Ringtoets.HeightStructures.IO @@ -60,6 +60,7 @@ /// the imported objects contain the right foreshore profile. /// The dike profiles used to check if /// the imported objects contain the right profile. + /// Thrown when any parameter is null. public HeightStructuresCalculationConfigurationImporter( string xmlFilePath, CalculationGroup importTarget, @@ -190,15 +191,15 @@ /// The configuration of the stochast. /// The function for obtaining the stochast to read. /// The function to set the stochast with the read parameters. - /// true if reading all required wave reduction parameters was successful, + /// true if reading all required stochast parameters was successful, /// false otherwise. private bool TryReadStandardDeviationStochast( StructuresCalculation calculation, string stochastName, MeanStandardDeviationStochastConfiguration stochastConfiguration, Func getStochast, Action setStochast) - where T : class, IDistribution + where T : IDistribution { if (stochastConfiguration == null) { @@ -224,15 +225,15 @@ /// The configuration of the stochast. /// The function for obtaining the stochast to read. /// The function to set the stochast with the read parameters. - /// true if reading all required wave reduction parameters was successful, + /// true if reading all required stochast parameters was successful, /// false otherwise. private bool TryReadVariationCoefficientStochast( StructuresCalculation calculation, string stochastName, MeanVariationCoefficientStochastConfiguration stochastConfiguration, Func getStochast, Action setStochast) - where T : class, IVariationCoefficientDistribution + where T : IVariationCoefficientDistribution { if (stochastConfiguration == null) { @@ -264,7 +265,8 @@ if (calculation.InputParameters.Structure == null) { LogReadCalculationConversionError( - "Er is geen kunstwerk opgegeven om de oriëntatie aan toe te voegen.", + string.Format(RingtoetsCommonIOResources.CalculationConfigurationImporter_TryParameter_No_Structure_to_assign_Parameter_0_, + RingtoetsCommonIOResources.CalculationConfigurationImporter_Orientation_DisplayName), calculation.Name); return false; @@ -279,7 +281,9 @@ catch (ArgumentOutOfRangeException e) { LogOutOfRangeException( - string.Format("Een waarde van '{0}' als oriëntatie is ongeldig.", orientation), + string.Format(RingtoetsCommonIOResources.TryReadParameter_Value_0_ParameterName_1_is_invalid, + orientation, + RingtoetsCommonIOResources.CalculationConfigurationImporter_Orientation_DisplayName), calculation.Name, e); @@ -304,7 +308,8 @@ if (calculation.InputParameters.Structure == null) { LogReadCalculationConversionError( - "Er is geen kunstwerk opgegeven om de faalkans gegeven erosie bodem aan toe te voegen.", + string.Format(RingtoetsCommonIOResources.CalculationConfigurationImporter_TryParameter_No_Structure_to_assign_Parameter_0_, + RingtoetsCommonIOResources.CalculationConfigurationImporter_FailureProbabilityStructureWithErosion_DisplayName), calculation.Name); return false; @@ -319,7 +324,10 @@ catch (ArgumentOutOfRangeException e) { LogOutOfRangeException( - string.Format("Een waarde van '{0}' als faalkans gegeven erosie bodem is ongeldig.", failureProbability), + string.Format( + RingtoetsCommonIOResources.TryReadParameter_Value_0_ParameterName_1_is_invalid, + failureProbability, + RingtoetsCommonIOResources.CalculationConfigurationImporter_FailureProbabilityStructureWithErosion_DisplayName), calculation.Name, e); @@ -409,7 +417,7 @@ { LogReadCalculationConversionError( string.Format( - "Het voorlandprofiel '{0}' bestaat niet.", + RingtoetsCommonIOResources.CalculationConfigurationImporter_ReadForeshoreProfile_ForeshoreProfile_0_does_not_exist, readCalculation.ForeshoreProfileName), calculation.Name); @@ -481,7 +489,7 @@ || readCalculation.WaveReduction.BreakWaterType.HasValue)) { LogReadCalculationConversionError( - "Er is geen voorlandprofiel opgegeven om golfreductie parameters aan toe te voegen.", + RingtoetsCommonIOResources.CalculationConfigurationImporter_ValidateWaveReduction_No_foreshore_profile_provided, calculation.Name); return false; @@ -493,7 +501,7 @@ { LogReadCalculationConversionError( string.Format( - "Het opgegeven voorlandprofiel '{0}' heeft geen geometrie en kan daarom niet gebruikt worden.", + RingtoetsCommonIOResources.ReadForeshoreProfile_ForeshoreProfile_0_has_no_geometry_and_cannot_be_used, readCalculation.ForeshoreProfileName), calculation.Name); return false; Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.IO.Test/HeightStructuresCalculationConfigurationImporterTest.cs =================================================================== diff -u -r5b07686bb3f89f1fa1017c4bf2cf8964ae9bd95c -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.IO.Test/HeightStructuresCalculationConfigurationImporterTest.cs (.../HeightStructuresCalculationConfigurationImporterTest.cs) (revision 5b07686bb3f89f1fa1017c4bf2cf8964ae9bd95c) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.IO.Test/HeightStructuresCalculationConfigurationImporterTest.cs (.../HeightStructuresCalculationConfigurationImporterTest.cs) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -167,7 +167,7 @@ // Assert string expectedMessage = $"{expectedErrorMessage} Berekening 'Berekening 1' is overgeslagen."; - TestHelper.AssertLogMessageIsGenerated(call, expectedMessage, 1); + TestHelper.AssertLogMessageWithLevelIsGenerated(call, Tuple.Create(expectedMessage, LogLevelConstant.Error), 1); Assert.IsTrue(successful); CollectionAssert.IsEmpty(calculationGroup.Children); } @@ -197,7 +197,7 @@ // Assert string expectedMessage = $"{expectedErrorMessage} Berekening 'Berekening 1' is overgeslagen."; - TestHelper.AssertLogMessageIsGenerated(call, expectedMessage, 1); + TestHelper.AssertLogMessageWithLevelIsGenerated(call, Tuple.Create(expectedMessage, LogLevelConstant.Error), 1); Assert.IsTrue(successful); CollectionAssert.IsEmpty(calculationGroup.Children); } @@ -226,8 +226,8 @@ Action call = () => successful = importer.Import(); // Assert - const string expectedMessage = "Het opgegeven voorlandprofiel 'Voorlandprofiel' heeft geen geometrie en kan daarom niet gebruikt worden. Berekening 'Berekening 1' is overgeslagen."; - TestHelper.AssertLogMessageIsGenerated(call, expectedMessage, 1); + const string expectedMessage = "Het opgegeven voorlandprofiel 'Voorlandprofiel' heeft geen voorlandgeometrie en kan daarom niet gebruikt worden. Berekening 'Berekening 1' is overgeslagen."; + TestHelper.AssertLogMessageWithLevelIsGenerated(call, Tuple.Create(expectedMessage, LogLevelConstant.Error), 1); Assert.IsTrue(successful); CollectionAssert.IsEmpty(calculationGroup.Children); } @@ -492,7 +492,7 @@ AssertCalculation(expectedCalculation, (StructuresCalculation)calculationGroup.Children[0]); } - private void AssertCalculation(StructuresCalculation expectedCalculation, StructuresCalculation actualCalculation) + private static void AssertCalculation(StructuresCalculation expectedCalculation, StructuresCalculation actualCalculation) { Assert.AreEqual(expectedCalculation.Name, actualCalculation.Name); Assert.AreSame(expectedCalculation.InputParameters.HydraulicBoundaryLocation, actualCalculation.InputParameters.HydraulicBoundaryLocation); Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ImportInfos/HeightStructuresCalculationGroupContextImportInfoTest.cs =================================================================== diff -u -rb25389d952b8ac86e61c5e822124b2c250ae3e55 -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ImportInfos/HeightStructuresCalculationGroupContextImportInfoTest.cs (.../HeightStructuresCalculationGroupContextImportInfoTest.cs) (revision b25389d952b8ac86e61c5e822124b2c250ae3e55) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ImportInfos/HeightStructuresCalculationGroupContextImportInfoTest.cs (.../HeightStructuresCalculationGroupContextImportInfoTest.cs) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -29,7 +29,6 @@ using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.Calculation; using Ringtoets.HeightStructures.Data; -using Ringtoets.HeightStructures.Data.TestUtil; using Ringtoets.HeightStructures.Forms.PresentationObjects; using Ringtoets.HeightStructures.IO; Index: Ringtoets/Piping/src/Ringtoets.Piping.IO/Importers/PipingCalculationConfigurationImporter.cs =================================================================== diff -u -rad17f1b8f41d6b4b75c9f39b427dddf31b47cef0 -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/Piping/src/Ringtoets.Piping.IO/Importers/PipingCalculationConfigurationImporter.cs (.../PipingCalculationConfigurationImporter.cs) (revision ad17f1b8f41d6b4b75c9f39b427dddf31b47cef0) +++ Ringtoets/Piping/src/Ringtoets.Piping.IO/Importers/PipingCalculationConfigurationImporter.cs (.../PipingCalculationConfigurationImporter.cs) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -26,7 +26,7 @@ using Ringtoets.Common.Data.Calculation; using Ringtoets.Common.Data.Hydraulics; using Ringtoets.Common.Data.Probabilistics; -using Ringtoets.Common.IO; +using Ringtoets.Common.IO.Configurations.Helpers; using Ringtoets.Common.IO.FileImporters; using Ringtoets.Piping.Data; using Ringtoets.Piping.IO.Properties; Index: Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Importers/WaveConditionsCalculationConfigurationImporter.cs =================================================================== diff -u -r133c79b0999dee3f9c2f02c5382687c0a173d2a4 -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Importers/WaveConditionsCalculationConfigurationImporter.cs (.../WaveConditionsCalculationConfigurationImporter.cs) (revision 133c79b0999dee3f9c2f02c5382687c0a173d2a4) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Importers/WaveConditionsCalculationConfigurationImporter.cs (.../WaveConditionsCalculationConfigurationImporter.cs) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -140,19 +140,19 @@ WaveConditionsInput input = calculation.InputParameters; return TryReadParameter(readCalculation.UpperBoundaryRevetment, v => input.UpperBoundaryRevetment = v, - Resources.WaveConditionsCalculationConfigurationImporter_DisplayName_UpperBoundaryRevetment, + Resources.WaveConditionsCalculationConfigurationImporter_UpperBoundaryRevetment_DisplayName, calculation.Name) && TryReadParameter(readCalculation.LowerBoundaryRevetment, v => input.LowerBoundaryRevetment = v, - Resources.WaveConditionsCalculationConfigurationImporter_DisplayName_LowerBoundaryRevetment, + Resources.WaveConditionsCalculationConfigurationImporter_LowerBoundaryRevetment_DisplayName, calculation.Name) && TryReadParameter(readCalculation.UpperBoundaryWaterLevels, v => input.UpperBoundaryWaterLevels = v, - Resources.WaveConditionsCalculationConfigurationImporter_DisplayName_UpperBoundaryWaterlevels, + Resources.WaveConditionsCalculationConfigurationImporter_UpperBoundaryWaterlevels_DisplayName, calculation.Name) && TryReadParameter(readCalculation.LowerBoundaryWaterLevels, v => input.LowerBoundaryWaterLevels = v, - Resources.WaveConditionsCalculationConfigurationImporter_DisplayName_LowerBoundaryWaterlevels, + Resources.WaveConditionsCalculationConfigurationImporter_LowerBoundaryWaterlevels_DisplayName, calculation.Name); } @@ -167,7 +167,7 @@ catch (ArgumentOutOfRangeException e) { LogOutOfRangeException(string.Format( - Resources.WaveConditionsCalculationConfigurationImporter_TryReadParameter_Value_0_ParameterName_1_is_invalid, + RingtoetsCommonIOResources.TryReadParameter_Value_0_ParameterName_1_is_invalid, readValue.Value, parameterName), calculationName, e); return false; @@ -201,7 +201,7 @@ if (foreshoreProfile == null) { LogReadCalculationConversionError(string.Format( - Resources.WaveConditionsCalculationConfigurationImporter_ReadForeshoreProfile_ForeshoreProfile_0_does_not_exist, + RingtoetsCommonIOResources.CalculationConfigurationImporter_ReadForeshoreProfile_ForeshoreProfile_0_does_not_exist, readCalculation.ForeshoreProfile), calculation.Name); return false; @@ -231,8 +231,9 @@ catch (ArgumentOutOfRangeException e) { LogOutOfRangeException(string.Format( - Resources.WaveConditionsCalculationConfigurationImporter_ReadOrientation_Orientation_0_invalid, - orientation), + RingtoetsCommonIOResources.TryReadParameter_Value_0_ParameterName_1_is_invalid, + orientation, + RingtoetsCommonIOResources.CalculationConfigurationImporter_Orientation_DisplayName), calculation.Name, e); return false; } @@ -293,7 +294,7 @@ || readCalculation.BreakWaterType != null) { LogReadCalculationConversionError( - Resources.WaveConditionsCalculationConfigurationImporter_ValidateWaveReduction_No_foreshore_profile_provided, + RingtoetsCommonIOResources.CalculationConfigurationImporter_ValidateWaveReduction_No_foreshore_profile_provided, calculation.Name); return false; } @@ -303,7 +304,7 @@ if (readCalculation.UseForeshore.HasValue && readCalculation.UseForeshore.Value) { LogReadCalculationConversionError(string.Format( - Resources.WaveConditionsCalculationConfigurationImporter_ValidateWaveReduction_ForeshoreProfile_0_has_no_geometry_and_cannot_be_used, + RingtoetsCommonIOResources.ReadForeshoreProfile_ForeshoreProfile_0_has_no_geometry_and_cannot_be_used, readCalculation.ForeshoreProfile), calculation.Name); return false; Index: Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Properties/Resources.Designer.cs =================================================================== diff -u -re4e7097f70b4e933b65f1ced9a57f3b9613c45c5 -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision e4e7097f70b4e933b65f1ced9a57f3b9613c45c5) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -149,94 +149,44 @@ /// /// Looks up a localized string similar to ondergrens bekledingen. /// - internal static string WaveConditionsCalculationConfigurationImporter_DisplayName_LowerBoundaryRevetment { + internal static string WaveConditionsCalculationConfigurationImporter_LowerBoundaryRevetment_DisplayName { get { - return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_DisplayName_LowerBoundaryRevetment" + + return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_LowerBoundaryRevetment_DisplayName" + "", resourceCulture); } } /// /// Looks up a localized string similar to ondergrens van de rekenreeks. /// - internal static string WaveConditionsCalculationConfigurationImporter_DisplayName_LowerBoundaryWaterlevels { + internal static string WaveConditionsCalculationConfigurationImporter_LowerBoundaryWaterlevels_DisplayName { get { - return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_DisplayName_LowerBoundaryWaterleve" + - "ls", resourceCulture); + return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_LowerBoundaryWaterlevels_DisplayNa" + + "me", resourceCulture); } } /// /// Looks up a localized string similar to bovengrens bekledingen. /// - internal static string WaveConditionsCalculationConfigurationImporter_DisplayName_UpperBoundaryRevetment { + internal static string WaveConditionsCalculationConfigurationImporter_UpperBoundaryRevetment_DisplayName { get { - return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_DisplayName_UpperBoundaryRevetment" + + return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_UpperBoundaryRevetment_DisplayName" + "", resourceCulture); } } /// /// Looks up a localized string similar to bovengrens van de rekenreeks. /// - internal static string WaveConditionsCalculationConfigurationImporter_DisplayName_UpperBoundaryWaterlevels { + internal static string WaveConditionsCalculationConfigurationImporter_UpperBoundaryWaterlevels_DisplayName { get { - return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_DisplayName_UpperBoundaryWaterleve" + - "ls", resourceCulture); + return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_UpperBoundaryWaterlevels_DisplayNa" + + "me", resourceCulture); } } /// - /// Looks up a localized string similar to Het voorlandprofiel '{0}' bestaat niet.. - /// - internal static string WaveConditionsCalculationConfigurationImporter_ReadForeshoreProfile_ForeshoreProfile_0_does_not_exist { - get { - return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_ReadForeshoreProfile_ForeshoreProf" + - "ile_0_does_not_exist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Een waarde van '{0}' als oriëntatie is ongeldig.. - /// - internal static string WaveConditionsCalculationConfigurationImporter_ReadOrientation_Orientation_0_invalid { - get { - return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_ReadOrientation_Orientation_0_inva" + - "lid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Een waarde van '{0}' als {1} is ongeldig.. - /// - internal static string WaveConditionsCalculationConfigurationImporter_TryReadParameter_Value_0_ParameterName_1_is_invalid { - get { - return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_TryReadParameter_Value_0_Parameter" + - "Name_1_is_invalid", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Het opgegeven voorlandprofiel '{0}' heeft geen voorlandgeometrie en kan daarom niet gebruikt worden.. - /// - internal static string WaveConditionsCalculationConfigurationImporter_ValidateWaveReduction_ForeshoreProfile_0_has_no_geometry_and_cannot_be_used { - get { - return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_ValidateWaveReduction_ForeshorePro" + - "file_0_has_no_geometry_and_cannot_be_used", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Er is geen voorlandprofiel opgegeven om golfreductie parameters aan toe te voegen.. - /// - internal static string WaveConditionsCalculationConfigurationImporter_ValidateWaveReduction_No_foreshore_profile_provided { - get { - return ResourceManager.GetString("WaveConditionsCalculationConfigurationImporter_ValidateWaveReduction_No_foreshore" + - "_profile_provided", resourceCulture); - } - } - - /// /// Looks up a localized string similar to {0} Er zijn geen golfrandvoorwaarden geëxporteerd.. /// internal static string WaveConditionsExporter_Error_Exception_0_no_WaveConditions_exported { Index: Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Properties/Resources.resx =================================================================== diff -u -re4e7097f70b4e933b65f1ced9a57f3b9613c45c5 -r512bebcd5570951b18657513c56843d9e2f8e969 --- Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Properties/Resources.resx (.../Resources.resx) (revision e4e7097f70b4e933b65f1ced9a57f3b9613c45c5) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Properties/Resources.resx (.../Resources.resx) (revision 512bebcd5570951b18657513c56843d9e2f8e969) @@ -145,31 +145,16 @@ ..\Resources\BekledingenHrConfiguratieSchema.xsd;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 - + bovengrens bekledingen - + ondergrens bekledingen - + bovengrens van de rekenreeks - + ondergrens van de rekenreeks - - Een waarde van '{0}' als oriëntatie is ongeldig. - - - Het voorlandprofiel '{0}' bestaat niet. - - - Het opgegeven voorlandprofiel '{0}' heeft geen voorlandgeometrie en kan daarom niet gebruikt worden. - - - Er is geen voorlandprofiel opgegeven om golfreductie parameters aan toe te voegen. - - - Een waarde van '{0}' als {1} is ongeldig. - \ No newline at end of file