Index: Ringtoets/Common/src/Ringtoets.Common.IO/Readers/CalculationConfigurationReaderHelper.cs =================================================================== diff -u -r7a466d4ccb9d859b47f565b400808eb6933b18f0 -r90d46f7d803d51c0a68ee35569cf3c918e5387fd --- Ringtoets/Common/src/Ringtoets.Common.IO/Readers/CalculationConfigurationReaderHelper.cs (.../CalculationConfigurationReaderHelper.cs) (revision 7a466d4ccb9d859b47f565b400808eb6933b18f0) +++ Ringtoets/Common/src/Ringtoets.Common.IO/Readers/CalculationConfigurationReaderHelper.cs (.../CalculationConfigurationReaderHelper.cs) (revision 90d46f7d803d51c0a68ee35569cf3c918e5387fd) @@ -41,7 +41,7 @@ /// The value of the element, or null when the /// does not have descendant elements of . /// Thrown when any parameter is null. - public static double? GetDoubleValueFromDescendantElement(XElement parentElement, string descendantElementName) + public static double? GetDoubleValueFromDescendantElement(this XElement parentElement, string descendantElementName) { if (parentElement == null) { Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/Readers/CalculationConfigurationReaderHelperTest.cs =================================================================== diff -u -r7a466d4ccb9d859b47f565b400808eb6933b18f0 -r90d46f7d803d51c0a68ee35569cf3c918e5387fd --- Ringtoets/Common/test/Ringtoets.Common.IO.Test/Readers/CalculationConfigurationReaderHelperTest.cs (.../CalculationConfigurationReaderHelperTest.cs) (revision 7a466d4ccb9d859b47f565b400808eb6933b18f0) +++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/Readers/CalculationConfigurationReaderHelperTest.cs (.../CalculationConfigurationReaderHelperTest.cs) (revision 90d46f7d803d51c0a68ee35569cf3c918e5387fd) @@ -44,8 +44,11 @@ [Test] public void GetDoubleValueFromDescendantElement_ParentElementNull_ThrowArgumentNullException() { + // Setup + XElement rootElement = null; + // Call - TestDelegate test = () => CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(null, ""); + TestDelegate test = () => rootElement.GetDoubleValueFromDescendantElement(""); // Assert var exception = Assert.Throws(test); @@ -55,8 +58,11 @@ [Test] public void GetDoubleValueFromDescendantElement_DescendantElementNameNull_ThrowArgumentNullException() { + // Setup + var rootElement = new XElement("Root"); + // Call - TestDelegate test = () => CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(new XElement("Root"), null); + TestDelegate test = () => rootElement.GetDoubleValueFromDescendantElement(null); // Assert var exception = Assert.Throws(test); @@ -73,7 +79,7 @@ var element = new XElement("Root", new XElement(descendantElementName, descendantElementValue)); // Call - double? readValue = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(element, descendantElementName); + double? readValue = element.GetDoubleValueFromDescendantElement(descendantElementName); // Assert Assert.AreEqual(descendantElementValue, readValue.Value); @@ -86,7 +92,7 @@ var element = new XElement("Root", new XElement("number", (double) 3)); // Call - double? readValue = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(element, "invalidName"); + double? readValue = element.GetDoubleValueFromDescendantElement("invalidName"); // Assert Assert.IsNull(readValue); Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.cs =================================================================== diff -u -r7a466d4ccb9d859b47f565b400808eb6933b18f0 -r90d46f7d803d51c0a68ee35569cf3c918e5387fd --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.cs (.../GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.cs) (revision 7a466d4ccb9d859b47f565b400808eb6933b18f0) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.cs (.../GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.cs) (revision 90d46f7d803d51c0a68ee35569cf3c918e5387fd) @@ -34,7 +34,7 @@ /// /// The name for the critical flow rate stochast. /// - public static string CriticalFlowRateStochastName = "overslagdebiet"; + public const string CriticalFlowRateStochastName = "overslagdebiet"; /// /// The identifier for the dike height elements. Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Properties/AssemblyInfo.cs =================================================================== diff -u -r1b12d6bcd79e88a65efa3ec7c60999a4bd44caca -r90d46f7d803d51c0a68ee35569cf3c918e5387fd --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Properties/AssemblyInfo.cs (.../AssemblyInfo.cs) (revision 1b12d6bcd79e88a65efa3ec7c60999a4bd44caca) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Properties/AssemblyInfo.cs (.../AssemblyInfo.cs) (revision 90d46f7d803d51c0a68ee35569cf3c918e5387fd) @@ -20,8 +20,10 @@ // All rights reserved. using System.Reflection; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Ringtoets.GrassCoverErosionInwards.IO")] [assembly: AssemblyProduct("Ringtoets.GrassCoverErosionInwards.IO")] -[assembly: Guid("aa3ab46f-1664-40c4-a620-a12513184bd4")] \ No newline at end of file +[assembly: Guid("aa3ab46f-1664-40c4-a620-a12513184bd4")] +[assembly: InternalsVisibleTo("Ringtoets.GrassCoverErosionInwards.IO.Test")] \ No newline at end of file Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Readers/GrassCoverErosionInwardsCalculationConfigurationReader.cs =================================================================== diff -u -r7a466d4ccb9d859b47f565b400808eb6933b18f0 -r90d46f7d803d51c0a68ee35569cf3c918e5387fd --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Readers/GrassCoverErosionInwardsCalculationConfigurationReader.cs (.../GrassCoverErosionInwardsCalculationConfigurationReader.cs) (revision 7a466d4ccb9d859b47f565b400808eb6933b18f0) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Readers/GrassCoverErosionInwardsCalculationConfigurationReader.cs (.../GrassCoverErosionInwardsCalculationConfigurationReader.cs) (revision 90d46f7d803d51c0a68ee35569cf3c918e5387fd) @@ -81,29 +81,24 @@ ConfigurationSchemaIdentifiers.HydraulicBoundaryLocationElement), DikeProfile = CalculationConfigurationReaderHelper.GetStringValueFromDescendantElement(calculationElement, GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.DikeProfileElement), - Orientation = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - ConfigurationSchemaIdentifiers.Orientation), - DikeHeight = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.DikeHeightElement), + Orientation = calculationElement.GetDoubleValueFromDescendantElement(ConfigurationSchemaIdentifiers.Orientation), + DikeHeight = calculationElement.GetDoubleValueFromDescendantElement(GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.DikeHeightElement), DikeHeightCalculationType = (DikeHeightCalculationType?) CalculationConfigurationReaderHelper.GetConvertedValueFromDescendantElement(calculationElement, GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.DikeHeightCalculationTypeElement), UseBreakWater = CalculationConfigurationReaderHelper.GetBoolValueFromDescendantElement(calculationElement, ConfigurationSchemaIdentifiers.UseBreakWater), BreakWaterType = (BreakWaterType?) CalculationConfigurationReaderHelper.GetConvertedValueFromDescendantElement(calculationElement, ConfigurationSchemaIdentifiers.BreakWaterType), - BreakWaterHeight = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - ConfigurationSchemaIdentifiers.BreakWaterHeight), + BreakWaterHeight = calculationElement.GetDoubleValueFromDescendantElement(ConfigurationSchemaIdentifiers.BreakWaterHeight), UseForeshore = CalculationConfigurationReaderHelper.GetBoolValueFromDescendantElement(calculationElement, ConfigurationSchemaIdentifiers.UseForeshore) }; XElement criticalFlowRateElement = CalculationConfigurationReaderHelper.GetStochastElement(calculationElement, GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.CriticalFlowRateStochastName); if (criticalFlowRateElement != null) { - constructionProperties.CriticalFlowRateMean = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(criticalFlowRateElement, - ConfigurationSchemaIdentifiers.MeanElement); - constructionProperties.CriticalFlowRateStandardDeviation = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(criticalFlowRateElement, - ConfigurationSchemaIdentifiers.StandardDeviationElement); + constructionProperties.CriticalFlowRateMean = criticalFlowRateElement.GetDoubleValueFromDescendantElement(ConfigurationSchemaIdentifiers.MeanElement); + constructionProperties.CriticalFlowRateStandardDeviation = criticalFlowRateElement.GetDoubleValueFromDescendantElement(ConfigurationSchemaIdentifiers.StandardDeviationElement); } return new ReadGrassCoverErosionInwardsCalculation(constructionProperties); Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiersTest.cs =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiersTest.cs (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiersTest.cs (revision 90d46f7d803d51c0a68ee35569cf3c918e5387fd) @@ -0,0 +1,39 @@ +// 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 NUnit.Framework; + +namespace Ringtoets.GrassCoverErosionInwards.IO.Test +{ + [TestFixture] + public class GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiersTest + { + [Test] + public void GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers_ExpectedValues() + { + // Call & Assert + Assert.AreEqual("dijkprofiel", GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.DikeProfileElement); + Assert.AreEqual("overslagdebiet", GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.CriticalFlowRateStochastName); + Assert.AreEqual("dijkhoogte", GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.DikeHeightElement); + Assert.AreEqual("hbnberekenen", GrassCoverErosionInwardsCalculationConfigurationSchemaIdentifiers.DikeHeightCalculationTypeElement); + } + } +} \ No newline at end of file Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/Ringtoets.GrassCoverErosionInwards.IO.Test.csproj =================================================================== diff -u -r7a466d4ccb9d859b47f565b400808eb6933b18f0 -r90d46f7d803d51c0a68ee35569cf3c918e5387fd --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/Ringtoets.GrassCoverErosionInwards.IO.Test.csproj (.../Ringtoets.GrassCoverErosionInwards.IO.Test.csproj) (revision 7a466d4ccb9d859b47f565b400808eb6933b18f0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/Ringtoets.GrassCoverErosionInwards.IO.Test.csproj (.../Ringtoets.GrassCoverErosionInwards.IO.Test.csproj) (revision 90d46f7d803d51c0a68ee35569cf3c918e5387fd) @@ -51,6 +51,7 @@ Properties\GlobalAssembly.cs + Index: Ringtoets/Piping/src/Ringtoets.Piping.IO/Readers/PipingCalculationConfigurationReader.cs =================================================================== diff -u -r7a466d4ccb9d859b47f565b400808eb6933b18f0 -r90d46f7d803d51c0a68ee35569cf3c918e5387fd --- Ringtoets/Piping/src/Ringtoets.Piping.IO/Readers/PipingCalculationConfigurationReader.cs (.../PipingCalculationConfigurationReader.cs) (revision 7a466d4ccb9d859b47f565b400808eb6933b18f0) +++ Ringtoets/Piping/src/Ringtoets.Piping.IO/Readers/PipingCalculationConfigurationReader.cs (.../PipingCalculationConfigurationReader.cs) (revision 90d46f7d803d51c0a68ee35569cf3c918e5387fd) @@ -71,16 +71,13 @@ var constructionProperties = new ReadPipingCalculation.ConstructionProperties { Name = calculationElement.Attribute(ConfigurationSchemaIdentifiers.NameAttribute)?.Value, - AssessmentLevel = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - PipingCalculationConfigurationSchemaIdentifiers.AssessmentLevelElement), + AssessmentLevel = calculationElement.GetDoubleValueFromDescendantElement(PipingCalculationConfigurationSchemaIdentifiers.AssessmentLevelElement), HydraulicBoundaryLocation = CalculationConfigurationReaderHelper.GetStringValueFromDescendantElement(calculationElement, ConfigurationSchemaIdentifiers.HydraulicBoundaryLocationElement), SurfaceLine = CalculationConfigurationReaderHelper.GetStringValueFromDescendantElement(calculationElement, PipingCalculationConfigurationSchemaIdentifiers.SurfaceLineElement), - EntryPointL = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - PipingCalculationConfigurationSchemaIdentifiers.EntryPointLElement), - ExitPointL = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - PipingCalculationConfigurationSchemaIdentifiers.ExitPointLElement), + EntryPointL = calculationElement.GetDoubleValueFromDescendantElement(PipingCalculationConfigurationSchemaIdentifiers.EntryPointLElement), + ExitPointL = calculationElement.GetDoubleValueFromDescendantElement(PipingCalculationConfigurationSchemaIdentifiers.ExitPointLElement), StochasticSoilModel = CalculationConfigurationReaderHelper.GetStringValueFromDescendantElement(calculationElement, PipingCalculationConfigurationSchemaIdentifiers.StochasticSoilModelElement), StochasticSoilProfile = CalculationConfigurationReaderHelper.GetStringValueFromDescendantElement(calculationElement, @@ -91,20 +88,16 @@ PipingCalculationConfigurationSchemaIdentifiers.PhreaticLevelExitStochastName); if (phreaticLevelExitElement != null) { - constructionProperties.PhreaticLevelExitMean = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(phreaticLevelExitElement, - ConfigurationSchemaIdentifiers.MeanElement); - constructionProperties.PhreaticLevelExitStandardDeviation = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(phreaticLevelExitElement, - ConfigurationSchemaIdentifiers.StandardDeviationElement); + constructionProperties.PhreaticLevelExitMean = phreaticLevelExitElement.GetDoubleValueFromDescendantElement(ConfigurationSchemaIdentifiers.MeanElement); + constructionProperties.PhreaticLevelExitStandardDeviation = phreaticLevelExitElement.GetDoubleValueFromDescendantElement(ConfigurationSchemaIdentifiers.StandardDeviationElement); } XElement dampingFactorExitElement = CalculationConfigurationReaderHelper.GetStochastElement(calculationElement, PipingCalculationConfigurationSchemaIdentifiers.DampingFactorExitStochastName); if (dampingFactorExitElement != null) { - constructionProperties.DampingFactorExitMean = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(dampingFactorExitElement, - ConfigurationSchemaIdentifiers.MeanElement); - constructionProperties.DampingFactorExitStandardDeviation = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(dampingFactorExitElement, - ConfigurationSchemaIdentifiers.StandardDeviationElement); + constructionProperties.DampingFactorExitMean = dampingFactorExitElement.GetDoubleValueFromDescendantElement(ConfigurationSchemaIdentifiers.MeanElement); + constructionProperties.DampingFactorExitStandardDeviation = dampingFactorExitElement.GetDoubleValueFromDescendantElement(ConfigurationSchemaIdentifiers.StandardDeviationElement); } return new ReadPipingCalculation(constructionProperties); Index: Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Readers/WaveConditionsCalculationConfigurationReader.cs =================================================================== diff -u -r7a466d4ccb9d859b47f565b400808eb6933b18f0 -r90d46f7d803d51c0a68ee35569cf3c918e5387fd --- Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Readers/WaveConditionsCalculationConfigurationReader.cs (.../WaveConditionsCalculationConfigurationReader.cs) (revision 7a466d4ccb9d859b47f565b400808eb6933b18f0) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Readers/WaveConditionsCalculationConfigurationReader.cs (.../WaveConditionsCalculationConfigurationReader.cs) (revision 90d46f7d803d51c0a68ee35569cf3c918e5387fd) @@ -80,26 +80,19 @@ Name = calculationElement.Attribute(ConfigurationSchemaIdentifiers.NameAttribute)?.Value, HydraulicBoundaryLocation = CalculationConfigurationReaderHelper.GetStringValueFromDescendantElement(calculationElement, ConfigurationSchemaIdentifiers.HydraulicBoundaryLocationElement), - UpperBoundaryRevetment = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - WaveConditionsCalculationConfigurationSchemaIdentifiers.UpperBoundaryRevetment), - LowerBoundaryRevetment = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - WaveConditionsCalculationConfigurationSchemaIdentifiers.LowerBoundaryRevetment), - UpperBoundaryWaterLevels = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - WaveConditionsCalculationConfigurationSchemaIdentifiers.UpperBoundaryWaterLevels), - LowerBoundaryWaterLevels = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - WaveConditionsCalculationConfigurationSchemaIdentifiers.LowerBoundaryWaterLevels), - StepSize = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - WaveConditionsCalculationConfigurationSchemaIdentifiers.StepSize), + UpperBoundaryRevetment = calculationElement.GetDoubleValueFromDescendantElement(WaveConditionsCalculationConfigurationSchemaIdentifiers.UpperBoundaryRevetment), + LowerBoundaryRevetment = calculationElement.GetDoubleValueFromDescendantElement(WaveConditionsCalculationConfigurationSchemaIdentifiers.LowerBoundaryRevetment), + UpperBoundaryWaterLevels = calculationElement.GetDoubleValueFromDescendantElement(WaveConditionsCalculationConfigurationSchemaIdentifiers.UpperBoundaryWaterLevels), + LowerBoundaryWaterLevels = calculationElement.GetDoubleValueFromDescendantElement(WaveConditionsCalculationConfigurationSchemaIdentifiers.LowerBoundaryWaterLevels), + StepSize = calculationElement.GetDoubleValueFromDescendantElement(WaveConditionsCalculationConfigurationSchemaIdentifiers.StepSize), ForeshoreProfile = CalculationConfigurationReaderHelper.GetStringValueFromDescendantElement(calculationElement, WaveConditionsCalculationConfigurationSchemaIdentifiers.ForeshoreProfile), - Orientation = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - ConfigurationSchemaIdentifiers.Orientation), + Orientation = calculationElement.GetDoubleValueFromDescendantElement(ConfigurationSchemaIdentifiers.Orientation), UseBreakWater = CalculationConfigurationReaderHelper.GetBoolValueFromDescendantElement(calculationElement, ConfigurationSchemaIdentifiers.UseBreakWater), BreakWaterType = CalculationConfigurationReaderHelper.GetStringValueFromDescendantElement(calculationElement, ConfigurationSchemaIdentifiers.BreakWaterType), - BreakWaterHeight = CalculationConfigurationReaderHelper.GetDoubleValueFromDescendantElement(calculationElement, - ConfigurationSchemaIdentifiers.BreakWaterHeight), + BreakWaterHeight = calculationElement.GetDoubleValueFromDescendantElement(ConfigurationSchemaIdentifiers.BreakWaterHeight), UseForeshore = CalculationConfigurationReaderHelper.GetBoolValueFromDescendantElement(calculationElement, ConfigurationSchemaIdentifiers.UseForeshore) }; Index: Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Ringtoets.Revetment.IO.Test.csproj =================================================================== diff -u -r038eb94cddc025675fb784caca7acd7f4ec39b89 -r90d46f7d803d51c0a68ee35569cf3c918e5387fd --- Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Ringtoets.Revetment.IO.Test.csproj (.../Ringtoets.Revetment.IO.Test.csproj) (revision 038eb94cddc025675fb784caca7acd7f4ec39b89) +++ Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/Ringtoets.Revetment.IO.Test.csproj (.../Ringtoets.Revetment.IO.Test.csproj) (revision 90d46f7d803d51c0a68ee35569cf3c918e5387fd) @@ -57,6 +57,7 @@ + Index: Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/WaveConditionsCalculationConfigurationSchemaIdentifiersTest.cs =================================================================== diff -u --- Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/WaveConditionsCalculationConfigurationSchemaIdentifiersTest.cs (revision 0) +++ Ringtoets/Revetment/test/Ringtoets.Revetment.IO.Test/WaveConditionsCalculationConfigurationSchemaIdentifiersTest.cs (revision 90d46f7d803d51c0a68ee35569cf3c918e5387fd) @@ -0,0 +1,41 @@ +// 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 NUnit.Framework; + +namespace Ringtoets.Revetment.IO.Test +{ + [TestFixture] + public class WaveConditionsCalculationConfigurationSchemaIdentifiersTest + { + [Test] + public void WaveConditionsCalculationConfigurationSchemaIdentifiers_ExpectedValues() + { + // Call & Assert + Assert.AreEqual("bovengrensbekleding", WaveConditionsCalculationConfigurationSchemaIdentifiers.UpperBoundaryRevetment); + Assert.AreEqual("ondergrensbekleding", WaveConditionsCalculationConfigurationSchemaIdentifiers.LowerBoundaryRevetment); + Assert.AreEqual("bovengrenswaterstanden", WaveConditionsCalculationConfigurationSchemaIdentifiers.UpperBoundaryWaterLevels); + Assert.AreEqual("ondergrenswaterstanden", WaveConditionsCalculationConfigurationSchemaIdentifiers.LowerBoundaryWaterLevels); + Assert.AreEqual("stapgrootte", WaveConditionsCalculationConfigurationSchemaIdentifiers.StepSize); + Assert.AreEqual("voorlandprofiel", WaveConditionsCalculationConfigurationSchemaIdentifiers.ForeshoreProfile); + } + } +} \ No newline at end of file