Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/DikeProfiles/DikeProfileDataReader.cs =================================================================== diff -u -r4e1b4ed200c6a9ad02e582e4596233188c64483f -r02b9c1938c77fec1599daf755bc1e7e70598621c --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/DikeProfiles/DikeProfileDataReader.cs (.../DikeProfileDataReader.cs) (revision 4e1b4ed200c6a9ad02e582e4596233188c64483f) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/DikeProfiles/DikeProfileDataReader.cs (.../DikeProfileDataReader.cs) (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -60,16 +60,16 @@ All = 1023 } - private const string idPattern = @"^ID\s+(?.+?)\s*$"; + private const string idPattern = @"^ID(\s+(?.+?)?)?\s*$"; private const string versionPattern = @"^VERSIE(\s+(?.+?)?)?\s*$"; private const string orientationPattern = @"^RICHTING(\s+(?.+?)?)?\s*$"; private const string damTypePattern = @"^DAM(\s+(?.+?)?)?\s*$"; private const string profileTypePattern = @"^DAMWAND(\s+(?.+?)?)?\s*$"; private const string damHeightPattern = @"^DAMHOOGTE(\s+(?.+?)?)?\s*$"; private const string crestLevelPattern = @"^KRUINHOOGTE(\s+(?.+?)?)?\s*$"; - private const string dikeGeometryPattern = @"^DIJK\s+(?.+?)?\s*$"; - private const string foreshoreGeometryPattern = @"^VOORLAND\s+(?.+?)?\s*$"; - private const string roughnessSectionPattern = @"^(?.+?)?\s+(?.+?)?\s+(?.+?)?\s*$"; + private const string dikeGeometryPattern = @"^DIJK(\s+(?.+?)?)?\s*$"; + private const string foreshoreGeometryPattern = @"^VOORLAND(\s+(?.+?)?)?\s*$"; + private const string roughnessPointPattern = @"^(\s*)?(?.+?)?(\s+(?.+?)?(\s+(?.+?)?)?)?\s*$"; private const string memoPattern = @"^MEMO\s*$"; private string fileBeingRead; @@ -80,6 +80,13 @@ /// /// The file path. /// The read dike profile data. + /// When an error occurs like: + /// + /// refers to a file that doesn't exist. + /// A piece of text from the file cannot be converted in the expected variable type. + /// A converted value is invalid. + /// The file is not complete. + /// public DikeProfileData ReadDikeProfileData(string filePath) { FileUtils.ValidateFilePath(filePath); @@ -111,14 +118,8 @@ continue; } - Match idMatch = new Regex(idPattern).Match(text); - if (idMatch.Success) - { - data.Id = idMatch.Groups["id"].Value; - // TODO: Validate id (needs different regex) - readParameters |= ParametersFoundInFile.ID; + if (TryReadId(text, data, lineNumber)) continue; - } if (TryReadOrientation(text, data, lineNumber)) { @@ -145,86 +146,11 @@ continue; } - Match dikeGeometryMatch = new Regex(dikeGeometryPattern).Match(text); - if (dikeGeometryMatch.Success) - { - int numberOfElements = int.Parse(dikeGeometryMatch.Groups["dikegeometry"].Value, CultureInfo.InvariantCulture); - if (numberOfElements < 0) - { - string message = string.Format(Resources.DikeProfileDataReader_ReadDikeProfileData_DikeCount_cannot_be_negative, - numberOfElements); - throw CreateCriticalFileReadException(lineNumber, message); - } - // TODO: Validate can be parsed - if (numberOfElements == 0) - { - readParameters |= ParametersFoundInFile.DIJK; - continue; - } - data.DikeGeometry = new RoughnessPoint[numberOfElements]; - - for (int i = 0; i < numberOfElements; i++) - { - lineNumber++; - text = ReadLineAndHandleIOExceptions(reader, lineNumber); - - Match roughnessSectionDataMatch = new Regex(roughnessSectionPattern).Match(text); - // TODO: Validate all can be parsed - // TODO: Ensure all in file - double localX = double.Parse(roughnessSectionDataMatch.Groups["localx"].Value, CultureInfo.InvariantCulture); - double localZ = double.Parse(roughnessSectionDataMatch.Groups["localz"].Value, CultureInfo.InvariantCulture); - double roughness = double.Parse(roughnessSectionDataMatch.Groups["roughness"].Value, CultureInfo.InvariantCulture); - if (roughness < 0.0 || roughness > 1.0) - { - string message = string.Format(Resources.DikeProfileDataReader_ReadDikeProfileData_Roughness_0_must_be_in_range, - roughness); - throw CreateCriticalFileReadException(lineNumber, message); - } - data.DikeGeometry[i] = new RoughnessPoint(new Point2D(localX, localZ), roughness); - } - readParameters |= ParametersFoundInFile.DIJK; + if (TryReadDikeRoughnessPoints(text, data, reader, ref lineNumber)) continue; - } - Match foreshoreGeometryMatch = new Regex(foreshoreGeometryPattern).Match(text); - if (foreshoreGeometryMatch.Success) - { - int numberOfElements = int.Parse(foreshoreGeometryMatch.Groups["foreshoregeometry"].Value, CultureInfo.InvariantCulture); - if (numberOfElements < 0) - { - string message = string.Format(Resources.DikeProfileDataReader_ReadDikeProfileData_ForeshoreCount_0_cannot_be_negative, - numberOfElements); - throw CreateCriticalFileReadException(lineNumber, message); - } - // TODO: Validate can be parsed - if (numberOfElements == 0) - { - readParameters |= ParametersFoundInFile.VOORLAND; - continue; - } - data.ForeshoreGeometry = new RoughnessPoint[numberOfElements]; - for (int i = 0; i < numberOfElements; i++) - { - lineNumber++; - text = ReadLineAndHandleIOExceptions(reader, lineNumber); - - Match roughnessSectionDataMatch = new Regex(roughnessSectionPattern).Match(text); - // TODO: Validate all can be parsed - // TODO: Ensure all in file - double localX = double.Parse(roughnessSectionDataMatch.Groups["localx"].Value, CultureInfo.InvariantCulture); - double localZ = double.Parse(roughnessSectionDataMatch.Groups["localz"].Value, CultureInfo.InvariantCulture); - double roughness = double.Parse(roughnessSectionDataMatch.Groups["roughness"].Value, CultureInfo.InvariantCulture); - if (roughness < 0.0 || roughness > 1.0) - { - string message = string.Format(Resources.DikeProfileDataReader_ReadDikeProfileData_Roughness_0_must_be_in_range, - roughness); - throw CreateCriticalFileReadException(lineNumber, message); - } - data.ForeshoreGeometry[i] = new RoughnessPoint(new Point2D(localX, localZ), roughness); - } - readParameters |= ParametersFoundInFile.VOORLAND; + if (TryReadForeshoreRoughnessPoints(text, data, reader, ref lineNumber)) continue; - } if (TryReadMemo(text, data, reader)) { @@ -303,6 +229,42 @@ } /// + /// Attempts to match the given text to a ID key-value pair. If a match is found, + /// the value is parsed and validated. + /// + /// The text. + /// The data to be updated. + /// The line number. + /// True if the text matches a ID key-value pair and has been + /// validated successfully; false otherwise. + /// The value after the ID key does + /// not represent a id. + private bool TryReadId(string text, DikeProfileData data, int lineNumber) + { + Match idMatch = new Regex(idPattern).Match(text); + if (idMatch.Success) + { + string readIdText = idMatch.Groups["id"].Value; + if (string.IsNullOrWhiteSpace(readIdText)) + { + string message = string.Format(Resources.DikeProfileDataReader_TryReadId_Id_0_not_valid, + readIdText); + throw CreateCriticalFileReadException(lineNumber, message); + } + if (new Regex(@"\s").IsMatch(readIdText)) + { + string message = string.Format(Resources.DikeProfileDataReader_TryReadId_Id_0_has_unsupported_white_space, + readIdText); + throw CreateCriticalFileReadException(lineNumber, message); + } + data.Id = readIdText; + readParameters |= ParametersFoundInFile.ID; + return true; + } + return false; + } + + /// /// Attempts to match the given text to a RICHTING key-value pair. If a match is /// found, the value is parsed and validated. If valid, the value is stored. /// @@ -599,6 +561,241 @@ } } + /// + /// Attempts to match the given text to a DIJK key-value pair. If a match is + /// found, the data block is being read. If valid, the value is stored. + /// + /// The text of the DIJK key-value pair. + /// The data to be updated. + /// The reader of the file. + /// The line number. + /// True if the text matches a DIJK key-value pair and has been + /// validated successfully; false otherwise. + /// The value after the DIJK key + /// does not represent a valid number or any of read the parameters in the following + /// data block is invalid. + private bool TryReadDikeRoughnessPoints(string text, DikeProfileData data, TextReader reader, ref int lineNumber) + { + Match dikeGeometryMatch = new Regex(dikeGeometryPattern).Match(text); + if (dikeGeometryMatch.Success) + { + string readDikeGeometryCountText = dikeGeometryMatch.Groups["dikegeometry"].Value; + int numberOfElements = ParseNumberOfDikeElements(lineNumber, readDikeGeometryCountText); + + if (numberOfElements < 0) + { + string message = string.Format(Resources.DikeProfileDataReader_ReadDikeProfileData_DikeCount_cannot_be_negative, + numberOfElements); + throw CreateCriticalFileReadException(lineNumber, message); + } + if (numberOfElements == 0) + { + readParameters |= ParametersFoundInFile.DIJK; + return true; + } + data.DikeGeometry = new RoughnessPoint[numberOfElements]; + + for (int i = 0; i < numberOfElements; i++) + { + lineNumber++; + text = ReadLineAndHandleIOExceptions(reader, lineNumber); + if (text == null) + { + string message = string.Format(Resources.DikeProfileDataReader_TryReadDikeRoughnessPoints_DikeCount_0_does_not_correspond_ExpectedCount_1_, + i, numberOfElements); + throw CreateCriticalFileReadException(lineNumber, message); + } + + RoughnessPoint roughnessPoint = ReadRoughnessPoint(text, lineNumber); + data.DikeGeometry[i] = roughnessPoint; + } + readParameters |= ParametersFoundInFile.DIJK; + return true; + } + return false; + } + + /// + /// Parses the number of dike roughness points from a piece of text representing + /// a DIJK key-value pair. + /// + /// The line number. + /// The DIJK key-value pair text. + /// The number of dike roughness points. + /// When + /// does not represent a number. + private int ParseNumberOfDikeElements(int lineNumber, string readDikeGeometryCountText) + { + try + { + return int.Parse(readDikeGeometryCountText, CultureInfo.InvariantCulture); + } + catch (FormatException e) + { + string message = string.Format(Resources.DikeProfileDataReader_ParseNumberOfDikeElements_DijkCount_0_not_integer, + readDikeGeometryCountText); + throw CreateCriticalFileReadException(lineNumber, message, e); + } + catch (OverflowException e) + { + string message = string.Format(Resources.DikeProfileDataReader_ParseNumberOfDikeElements_DikeCount_0_overflows, + readDikeGeometryCountText); + throw CreateCriticalFileReadException(lineNumber, message, e); + } + } + + /// + /// Attempts to match the given text to a roughness-point value triplet. If a match + /// is found, the values are parsed and validated. If valid, the resulting + /// based on the values will be returned. + /// + /// The text. + /// The line number. + /// True if the text matches a roughness-point value triplet and + /// has been validated successfully; false otherwise. + /// Any parameter value in the roughness-point + /// value triplet does not represent a valid number or the roughness parameter + /// is not valid. + private RoughnessPoint ReadRoughnessPoint(string text, int lineNumber) + { + Match roughnessSectionDataMatch = new Regex(roughnessPointPattern).Match(text); + + string readLocalXText = roughnessSectionDataMatch.Groups["localx"].Value; + double localX = ParseRoughnessPointParameter(readLocalXText, + Resources.DikeProfileDataReader_ReadRoughnessPoint_X_DisplayName, + lineNumber); + + string readLocalYText = roughnessSectionDataMatch.Groups["localz"].Value; + double localY = ParseRoughnessPointParameter(readLocalYText, + Resources.DikeProfileDataReader_ReadRoughnessPoint_Y_DisplayName, + lineNumber); + + string readRoughnessText = roughnessSectionDataMatch.Groups["roughness"].Value; + double roughness = ParseRoughnessPointParameter(readRoughnessText, + Resources.DikeProfileDataReader_ReadRoughnessPoint_Roughness_DisplayName, + lineNumber); + + if (roughness < 0.5 || roughness > 1.0) + { + string message = string.Format(Resources.DikeProfileDataReader_ReadRoughnessPoint_Roughness_0_must_be_in_range_LowerLimit_1_, + roughness, 0.5); + throw CreateCriticalFileReadException(lineNumber, message); + } + return new RoughnessPoint(new Point2D(localX, localY), roughness); + } + + /// + /// Parses some double parameter from a piece of text. + /// + /// The name of the parameter as shown to the user. + /// The line number. + /// The value text to be parsed. + /// The parameter value. + /// When + /// does not represent a number. + private double ParseRoughnessPointParameter(string readParameterText, string parameterName, int lineNumber) + { + try + { + return double.Parse(readParameterText, CultureInfo.InvariantCulture); + } + catch (FormatException e) + { + string message = string.Format(Resources.DikeProfileDataReader_ParseRoughnessPointParameter_ParameterName_0_Value_1_not_number, + parameterName, readParameterText); + throw CreateCriticalFileReadException(lineNumber, message, e); + } + catch (OverflowException e) + { + string message = string.Format(Resources.DikeProfileDataReader_ParseRoughnessPointParameter_ParameterName_0_Value_1_overflows, + parameterName, readParameterText); + throw CreateCriticalFileReadException(lineNumber, message, e); + } + } + + /// + /// Attempts to match the given text to a VOORLAND key-value pair. If a match is + /// found, the data block is being read. If valid, the value is stored. + /// + /// The text of the VOORLAND key-value pair. + /// The data to be updated. + /// The reader of the file. + /// The line number. + /// True if the text matches a VOORLAND key-value pair and has been + /// validated successfully; false otherwise. + /// The value after the VOORLAND key + /// does not represent a valid number or any of read the parameters in the following + /// data block is invalid. + private bool TryReadForeshoreRoughnessPoints(string text, DikeProfileData data, TextReader reader, ref int lineNumber) + { + Match foreshoreGeometryMatch = new Regex(foreshoreGeometryPattern).Match(text); + if (foreshoreGeometryMatch.Success) + { + string readForeshoreCountText = foreshoreGeometryMatch.Groups["foreshoregeometry"].Value; + var numberOfElements = ParseNumberOfForeshoreElements(readForeshoreCountText, lineNumber); + + if (numberOfElements < 0) + { + string message = string.Format(Resources.DikeProfileDataReader_ReadDikeProfileData_ForeshoreCount_0_cannot_be_negative, + numberOfElements); + throw CreateCriticalFileReadException(lineNumber, message); + } + if (numberOfElements == 0) + { + readParameters |= ParametersFoundInFile.VOORLAND; + return true; + } + + data.ForeshoreGeometry = new RoughnessPoint[numberOfElements]; + for (int i = 0; i < numberOfElements; i++) + { + lineNumber++; + text = ReadLineAndHandleIOExceptions(reader, lineNumber); + if (text == null) + { + string message = string.Format(Resources.DikeProfileDataReader_TryReadForeshoreRoughnessPoints_ForeshoreCount_0_does_not_correspond_ExpectedCount_1_, + i, numberOfElements); + throw CreateCriticalFileReadException(lineNumber, message); + } + + RoughnessPoint roughnessPoint = ReadRoughnessPoint(text, lineNumber); + data.ForeshoreGeometry[i] = roughnessPoint; + } + readParameters |= ParametersFoundInFile.VOORLAND; + return true; + } + return false; + } + + /// + /// Parses the number of foreshore roughness points from a piece of text representing + /// a VOORLAND key-value pair. + /// + /// The line number. + /// The VOORLAND key-value pair text. + /// The number of foreshore roughness points. + /// When + /// does not represent a number. + private int ParseNumberOfForeshoreElements(string readForeshoreCountText, int lineNumber) + { + try + { + return int.Parse(readForeshoreCountText, CultureInfo.InvariantCulture); + } + catch (FormatException e) + { + string message = string.Format(Resources.DikeProfileDataReader_ParseNumberOfForeshoreElements_ForeshoreCount_0_not_integer, + readForeshoreCountText); + throw CreateCriticalFileReadException(lineNumber, message, e); + } + catch (OverflowException e) + { + string message = string.Format(Resources.DikeProfileDataReader_ParseNumberOfForeshoreElements_ForeshoreCount_0_overflows, + readForeshoreCountText); + throw CreateCriticalFileReadException(lineNumber, message, e); + } + } + private bool TryReadMemo(string text, DikeProfileData data, StreamReader reader) { Match memoMatch = new Regex(memoPattern).Match(text); Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Properties/Resources.Designer.cs =================================================================== diff -u -r5a421e7bb0b0c52d5d1d9ca20d495cd11bfa10e8 -r02b9c1938c77fec1599daf755bc1e7e70598621c --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 5a421e7bb0b0c52d5d1d9ca20d495cd11bfa10e8) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.42000 +// Runtime Version:4.0.30319.18444 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -124,6 +124,43 @@ } /// + /// Looks up a localized string similar to Het ingelezen aantal dijk punten ({0}) is geen geheel getal.. + /// + internal static string DikeProfileDataReader_ParseNumberOfDikeElements_DijkCount_0_not_integer { + get { + return ResourceManager.GetString("DikeProfileDataReader_ParseNumberOfDikeElements_DijkCount_0_not_integer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Het ingelezen aantal dijk punten ({0}) is te groot of te klein om ingelezen te worden.. + /// + internal static string DikeProfileDataReader_ParseNumberOfDikeElements_DikeCount_0_overflows { + get { + return ResourceManager.GetString("DikeProfileDataReader_ParseNumberOfDikeElements_DikeCount_0_overflows", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Het ingelezen aantal voorland punten ({0}) is geen geheel getal.. + /// + internal static string DikeProfileDataReader_ParseNumberOfForeshoreElements_ForeshoreCount_0_not_integer { + get { + return ResourceManager.GetString("DikeProfileDataReader_ParseNumberOfForeshoreElements_ForeshoreCount_0_not_integer" + + "", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Het ingelezen aantal voorland punten ({0}) is te groot of te klein om ingelezen te worden.. + /// + internal static string DikeProfileDataReader_ParseNumberOfForeshoreElements_ForeshoreCount_0_overflows { + get { + return ResourceManager.GetString("DikeProfileDataReader_ParseNumberOfForeshoreElements_ForeshoreCount_0_overflows", resourceCulture); + } + } + + /// /// Looks up a localized string similar to De ingelezen orientatie ({0}) is geen getal.. /// internal static string DikeProfileDataReader_ParseOrientation_Orientation_0_not_double { @@ -160,6 +197,26 @@ } /// + /// Looks up a localized string similar to De ingelezen {0} ({1}) is geen getal.. + /// + internal static string DikeProfileDataReader_ParseRoughnessPointParameter_ParameterName_0_Value_1_not_number { + get { + return ResourceManager.GetString("DikeProfileDataReader_ParseRoughnessPointParameter_ParameterName_0_Value_1_not_nu" + + "mber", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to De ingelezen {0} ({1}) is te groot of te klein om ingelezen te worden.. + /// + internal static string DikeProfileDataReader_ParseRoughnessPointParameter_ParameterName_0_Value_1_overflows { + get { + return ResourceManager.GetString("DikeProfileDataReader_ParseRoughnessPointParameter_ParameterName_0_Value_1_overfl" + + "ows", resourceCulture); + } + } + + /// /// Looks up a localized string similar to De ingelezen versie ({0}) is geen geldige versie code.. /// internal static string DikeProfileDataReader_ParseVersion_Invalid_version_0_ { @@ -214,15 +271,81 @@ } /// - /// Looks up a localized string similar to De ingelezen ruwheid ({0}) moet in het bereik [0, 1] vallen.. + /// Looks up a localized string similar to De ingelezen ruwheid ({0}) moet in het bereik [{1}, 1] vallen.. /// - internal static string DikeProfileDataReader_ReadDikeProfileData_Roughness_0_must_be_in_range { + internal static string DikeProfileDataReader_ReadRoughnessPoint_Roughness_0_must_be_in_range_LowerLimit_1_ { get { - return ResourceManager.GetString("DikeProfileDataReader_ReadDikeProfileData_Roughness_0_must_be_in_range", resourceCulture); + return ResourceManager.GetString("DikeProfileDataReader_ReadRoughnessPoint_Roughness_0_must_be_in_range_LowerLimit_" + + "1_", resourceCulture); } } /// + /// Looks up a localized string similar to ruwheid. + /// + internal static string DikeProfileDataReader_ReadRoughnessPoint_Roughness_DisplayName { + get { + return ResourceManager.GetString("DikeProfileDataReader_ReadRoughnessPoint_Roughness_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to X coordinaat. + /// + internal static string DikeProfileDataReader_ReadRoughnessPoint_X_DisplayName { + get { + return ResourceManager.GetString("DikeProfileDataReader_ReadRoughnessPoint_X_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Y coordinaat. + /// + internal static string DikeProfileDataReader_ReadRoughnessPoint_Y_DisplayName { + get { + return ResourceManager.GetString("DikeProfileDataReader_ReadRoughnessPoint_Y_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Het aantal dijk punten in het bestand ({0}) komt niet overeen met de aangegeven hoeveelheid dijk punten ({1}).. + /// + internal static string DikeProfileDataReader_TryReadDikeRoughnessPoints_DikeCount_0_does_not_correspond_ExpectedCount_1_ { + get { + return ResourceManager.GetString("DikeProfileDataReader_TryReadDikeRoughnessPoints_DikeCount_0_does_not_correspond_" + + "ExpectedCount_1_", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Het aantal voorland punten in het bestand ({0}) komt niet overeen met de aangegeven hoeveelheid voorland punten ({1}).. + /// + internal static string DikeProfileDataReader_TryReadForeshoreRoughnessPoints_ForeshoreCount_0_does_not_correspond_ExpectedCount_1_ { + get { + return ResourceManager.GetString("DikeProfileDataReader_TryReadForeshoreRoughnessPoints_ForeshoreCount_0_does_not_c" + + "orrespond_ExpectedCount_1_", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to De ingelezen Id ({0}) bevat spaties, welke niet zijn toegestaan.. + /// + internal static string DikeProfileDataReader_TryReadId_Id_0_has_unsupported_white_space { + get { + return ResourceManager.GetString("DikeProfileDataReader_TryReadId_Id_0_has_unsupported_white_space", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to De ingelezen Id ({0}) is geen geldig id.. + /// + internal static string DikeProfileDataReader_TryReadId_Id_0_not_valid { + get { + return ResourceManager.GetString("DikeProfileDataReader_TryReadId_Id_0_not_valid", resourceCulture); + } + } + + /// /// Looks up a localized string similar to De ingelezen orientatie waarde ({0}) moet binnen het bereik [0, 360] vallen.. /// internal static string DikeProfileDataReader_TryReadOrientation_Orientation_0_must_be_in_range { Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Properties/Resources.resx =================================================================== diff -u -r5a421e7bb0b0c52d5d1d9ca20d495cd11bfa10e8 -r02b9c1938c77fec1599daf755bc1e7e70598621c --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Properties/Resources.resx (.../Resources.resx) (revision 5a421e7bb0b0c52d5d1d9ca20d495cd11bfa10e8) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Properties/Resources.resx (.../Resources.resx) (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -153,8 +153,8 @@ De ingelezen damwand-type waarde ({0}) moet binnen het bereik [0, 2] vallen. - - De ingelezen ruwheid ({0}) moet in het bereik [0, 1] vallen. + + De ingelezen ruwheid ({0}) moet in het bereik [{1}, 1] vallen. Het bestand heeft geen attribuut '{0}' welke vereist is om de locaties van de dijkprofielen in te lezen. @@ -210,4 +210,43 @@ De locatie parameter 'X0' bevat een ongeldig getal. + + De ingelezen Id ({0}) is geen geldig id. + + + De ingelezen Id ({0}) bevat spaties, welke niet zijn toegestaan. + + + Het ingelezen aantal dijk punten ({0}) is geen geheel getal. + + + Het ingelezen aantal dijk punten ({0}) is te groot of te klein om ingelezen te worden. + + + De ingelezen {0} ({1}) is geen getal. + + + De ingelezen {0} ({1}) is te groot of te klein om ingelezen te worden. + + + Het ingelezen aantal voorland punten ({0}) is geen geheel getal. + + + Het ingelezen aantal voorland punten ({0}) is te groot of te klein om ingelezen te worden. + + + Het aantal voorland punten in het bestand ({0}) komt niet overeen met de aangegeven hoeveelheid voorland punten ({1}). + + + X coordinaat + + + Y coordinaat + + + ruwheid + + + Het aantal dijk punten in het bestand ({0}) komt niet overeen met de aangegeven hoeveelheid dijk punten ({1}). + \ No newline at end of file Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/DikeProfiles/DikeProfileDataReaderTest.cs =================================================================== diff -u -r3a772825514873eb774147054ceb5134c9d9f7b9 -r02b9c1938c77fec1599daf755bc1e7e70598621c --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/DikeProfiles/DikeProfileDataReaderTest.cs (.../DikeProfileDataReaderTest.cs) (revision 3a772825514873eb774147054ceb5134c9d9f7b9) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/DikeProfiles/DikeProfileDataReaderTest.cs (.../DikeProfileDataReaderTest.cs) (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -153,7 +153,7 @@ { // Setup string validFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", "profiel004 - Ringtoets.prfl")); + Path.Combine("DikeProfiles", "profiel004 - Ringtoets.prfl")); var reader = new DikeProfileDataReader(); @@ -209,7 +209,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -223,7 +223,6 @@ Assert.AreEqual(expectedMessage, message); } - [Test] [TestCase("faulty_incorrectVersion1.prfl")] [TestCase("faulty_incorrectVersion2.prfl")] @@ -232,7 +231,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -254,7 +253,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -276,7 +275,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -298,7 +297,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -317,7 +316,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", "faulty_voorlandCountNegative.prfl")); + Path.Combine("DikeProfiles", "faulty_voorlandCountNegative.prfl")); var reader = new DikeProfileDataReader(); @@ -332,16 +331,39 @@ } [Test] + [SetCulture("nl-NL")] [TestCase("faulty_voorlandHasRoughnessTooBig.prfl", 1.234, 11)] + [TestCase("faulty_dijkHasRoughnessTooBig.prfl", 1.321, 15)] + public void ReadDikeProfileData_FaultyFileWithRoughnessOutOfRange_ThrowCriticalFileReadException_nl_NL( + string faultyFileName, double expectedFaultyRoughness, double expectedLineNumber) + { + DoReadDikeProfileData_FaultyFileWithRoughnessOutOfRange_ThrowsCriticalFileReadException( + faultyFileName, expectedFaultyRoughness, expectedLineNumber, "0,5"); + } + + [Test] + [SetCulture("en-US")] [TestCase("faulty_voorlandHasRoughnessTooSmall.prfl", -0.943, 10)] [TestCase("faulty_dijkHasRoughnessTooSmall.prfl", -0.123, 14)] - [TestCase("faulty_dijkHasRoughnessTooBig.prfl", 1.321, 15)] - public void ReadDikeProfileData_FaultyFileWithRoughnessOutOfRange_ThrowCriticalFileReadException( + public void ReadDikeProfileData_FaultyFileWithRoughnessOutOfRange_ThrowCriticalFileReadException_en_US( string faultyFileName, double expectedFaultyRoughness, double expectedLineNumber) { + DoReadDikeProfileData_FaultyFileWithRoughnessOutOfRange_ThrowsCriticalFileReadException( + faultyFileName, expectedFaultyRoughness, expectedLineNumber, "0.5"); + } + + [Test] + [TestCase("faulty_unparsableVersie.prfl", "syudrj iowydlklk")] + [TestCase("faulty_unparsableVersie_noValue1.prfl", "")] + [TestCase("faulty_unparsableVersie_noValue2.prfl", "")] + [TestCase("faulty_unparsableVersie_IncorrectCharacter.prfl", "4.q")] + [TestCase("faulty_unparsableVersie_NegativeNumber.prfl", "-4.-0")] + public void ReadDikeProfileData_FaultyFileWithUnparsableVersion_ThrowCriticalFileReadException( + string faultyFileName, string expectedReadText) + { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -350,23 +372,20 @@ // Assert string message = Assert.Throws(call).Message; - string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel {1}: De ingelezen ruwheid ({2}) moet in het bereik [0, 1] vallen.", - faultyFilePath, expectedLineNumber, expectedFaultyRoughness); + string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel 1: De ingelezen versie ({1}) is geen geldige versie code.", + faultyFilePath, expectedReadText); Assert.AreEqual(expectedMessage, message); } [Test] - [TestCase("faulty_unparsableVersie.prfl", "syudrj iowydlklk")] - [TestCase("faulty_unparsableVersie_noValue1.prfl", "")] - [TestCase("faulty_unparsableVersie_noValue2.prfl", "")] - [TestCase("faulty_unparsableVersie_IncorrectCharacter.prfl", "4.q")] - [TestCase("faulty_unparsableVersie_NegativeNumber.prfl", "-4.-0")] - public void ReadDikeProfileData_FaultyFileWithUnparsableVersion_ThrowCriticalFileReadException( + [TestCase("faulty_unparsableId_noValue1.prfl", "")] + [TestCase("faulty_unparsableId_noValue2.prfl", "")] + public void ReadDikeProfileData_FaultyFileWithUnparsableId_ThrowCriticalFileReadException( string faultyFileName, string expectedReadText) { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -375,19 +394,37 @@ // Assert string message = Assert.Throws(call).Message; - string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel 1: De ingelezen versie ({1}) is geen geldige versie code.", + string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel 2: De ingelezen Id ({1}) is geen geldig id.", faultyFilePath, expectedReadText); Assert.AreEqual(expectedMessage, message); } [Test] + public void ReadDikeProfileData_FaultyFileWithInvalidId_ThrowCriticalFileReadException() + { + // Setup + string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, + Path.Combine("DikeProfiles", "faulty_invalidId.prfl")); + var reader = new DikeProfileDataReader(); + + // Call + TestDelegate call = () => reader.ReadDikeProfileData(faultyFilePath); + + // Assert + string message = Assert.Throws(call).Message; + string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel 2: De ingelezen Id (Id's are not allowed to have any white space!) bevat spaties, welke niet zijn toegestaan.", + faultyFilePath); + Assert.AreEqual(expectedMessage, message); + } + + [Test] [TestCase("faulty_unparsableVersie_Overflow.prfl", "44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.0")] public void ReadDikeProfileData_FaultyFileWithOverflowVersion_ThrowCriticalFileReadException( string faultyFileName, string expectedReadText) { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -410,7 +447,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -432,7 +469,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -455,7 +492,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -477,7 +514,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -500,7 +537,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -522,7 +559,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -545,7 +582,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -567,7 +604,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -590,7 +627,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -612,7 +649,7 @@ { // Setup string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, - Path.Combine("DikeProfiles", faultyFileName)); + Path.Combine("DikeProfiles", faultyFileName)); var reader = new DikeProfileDataReader(); @@ -626,6 +663,223 @@ Assert.AreEqual(expectedMessage, message); } + [Test] + [TestCase("faulty_unparsableDijk.prfl", "069xf837 uo uyhtwuht098y hb3loiu43597")] + [TestCase("faulty_unparsableDijk_noValue1.prfl", "")] + [TestCase("faulty_unparsableDijk_noValue2.prfl", "")] + public void ReadDikeProfileData_FaultyFileWithUnparsableDikeCount_ThrowsCriticalFileReadException( + string faultyFileName, string expectedReadText) + { + // Setup + string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, + Path.Combine("DikeProfiles", faultyFileName)); + + var reader = new DikeProfileDataReader(); + + // Call + TestDelegate call = () => reader.ReadDikeProfileData(faultyFilePath); + + // Assert + string message = Assert.Throws(call).Message; + string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel 16: Het ingelezen aantal dijk punten ({1}) is geen geheel getal.", + faultyFilePath, expectedReadText); + Assert.AreEqual(expectedMessage, message); + } + + [Test] + [TestCase("faulty_unparsableDijk_Overflow1.prfl", "11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111")] + [TestCase("faulty_unparsableDijk_Overflow2.prfl", "-22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222")] + public void ReadDikeProfileData_FaultyFileWithOverflowDijkCount_ThrowsCriticalFileReadException( + string faultyFileName, string expectedReadText) + { + // Setup + string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, + Path.Combine("DikeProfiles", faultyFileName)); + + var reader = new DikeProfileDataReader(); + + // Call + TestDelegate call = () => reader.ReadDikeProfileData(faultyFilePath); + + // Assert + string message = Assert.Throws(call).Message; + string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel 16: Het ingelezen aantal dijk punten ({1}) is te groot of te klein om ingelezen te worden.", + faultyFilePath, expectedReadText); + Assert.AreEqual(expectedMessage, message); + } + + [Test] + [TestCase("faulty_unparsableDijk_X.prfl", 18, "X coordinaat", "suhf")] + [TestCase("faulty_unparsableDijk_X_noValue1.prfl", 18, "X coordinaat", "")] + [TestCase("faulty_unparsableDijk_X_noValue2.prfl", 18, "X coordinaat", "")] + [TestCase("faulty_unparsableDijk_Y.prfl", 20, "Y coordinaat", "o;jfhe;lhtvwposiu")] + [TestCase("faulty_unparsableDijk_Y_noValue1.prfl", 20, "Y coordinaat", "")] + [TestCase("faulty_unparsableDijk_Y_noValue2.prfl", 20, "Y coordinaat", "")] + [TestCase("faulty_unparsableDijk_Roughness.prfl", 17, "ruwheid", "dr;tjn")] + [TestCase("faulty_unparsableDijk_Roughness_noValue1.prfl", 17, "ruwheid", "")] + [TestCase("faulty_unparsableDijk_Roughness_noValue2.prfl", 17, "ruwheid", "")] + [TestCase("faulty_unparsableVoorland_X.prfl", 10, "X coordinaat", "glkjdhflgkjhsk")] + [TestCase("faulty_unparsableVoorland_X_noValue1.prfl", 11, "X coordinaat", "")] + [TestCase("faulty_unparsableVoorland_X_noValue2.prfl", 12, "X coordinaat", "")] + [TestCase("faulty_unparsableVoorland_Y.prfl", 12, "Y coordinaat", "lijfhsliufghkj")] + [TestCase("faulty_unparsableVoorland_Y_noValue1.prfl", 10, "Y coordinaat", "")] + [TestCase("faulty_unparsableVoorland_Y_noValue2.prfl", 11, "Y coordinaat", "")] + [TestCase("faulty_unparsableVoorland_Roughness.prfl", 10, "ruwheid", ";lsduglk wab")] + [TestCase("faulty_unparsableVoorland_Roughness_noValue1.prfl", 11, "ruwheid", "")] + [TestCase("faulty_unparsableVoorland_Roughness_noValue2.prfl", 12, "ruwheid", "")] + public void ReadDikeProfileData_FaultyFileWithUnparsableRoughnessPoints_ThrowsCriticalFileReadException( + string faultyFileName, int expectedLineNumber, string expectedParameterName, string expectedReadText) + { + // Setup + string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, + Path.Combine("DikeProfiles", faultyFileName)); + + var reader = new DikeProfileDataReader(); + + // Call + TestDelegate call = () => reader.ReadDikeProfileData(faultyFilePath); + + // Assert + string message = Assert.Throws(call).Message; + string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel {1}: De ingelezen {2} ({3}) is geen getal.", + faultyFilePath, expectedLineNumber, expectedParameterName, expectedReadText); + Assert.AreEqual(expectedMessage, message); + } + + [Test] + [TestCase("faulty_unparsableDijk_X_Overflow1.prfl", 18, "X coordinaat", "99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999")] + [TestCase("faulty_unparsableDijk_X_Overflow2.prfl", 18, "X coordinaat", "-44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444")] + [TestCase("faulty_unparsableDijk_Y_Overflow1.prfl", 19, "Y coordinaat", "88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888.8")] + [TestCase("faulty_unparsableDijk_Y_Overflow2.prfl", 20, "Y coordinaat", "-44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.4")] + [TestCase("faulty_unparsableDijk_Roughness_Overflow1.prfl", 17, "ruwheid", "-44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.4")] + [TestCase("faulty_unparsableDijk_Roughness_Overflow2.prfl", 17, "ruwheid", "88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888.8")] + [TestCase("faulty_unparsableVoorland_X_Overflow1.prfl", 11, "X coordinaat", "55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555")] + [TestCase("faulty_unparsableVoorland_X_Overflow2.prfl", 12, "X coordinaat", "-33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333")] + [TestCase("faulty_unparsableVoorland_Y_Overflow1.prfl", 11, "Y coordinaat", "77777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777.7")] + [TestCase("faulty_unparsableVoorland_Y_Overflow2.prfl", 10, "Y coordinaat", "-44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.4")] + [TestCase("faulty_unparsableVoorland_Roughness_Overflow1.prfl", 10, "ruwheid", "-44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.4")] + [TestCase("faulty_unparsableVoorland_Roughness_Overflow2.prfl", 11, "ruwheid", "-33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333")] + public void ReadDikeProfileData_FaultyFileWithOverflowRoughnessPoints_ThrowsCriticalFileReadException( + string faultyFileName, int expectedLineNumber, string expectedParameterName, string expectedReadText) + { + // Setup + string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, + Path.Combine("DikeProfiles", faultyFileName)); + + var reader = new DikeProfileDataReader(); + + // Call + TestDelegate call = () => reader.ReadDikeProfileData(faultyFilePath); + + // Assert + string message = Assert.Throws(call).Message; + string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel {1}: De ingelezen {2} ({3}) is te groot of te klein om ingelezen te worden.", + faultyFilePath, expectedLineNumber, expectedParameterName, expectedReadText); + Assert.AreEqual(expectedMessage, message); + } + + [Test] + public void ReadDikeProfileData_FaultyFileWithMissingDikePoints_ThrowsCriticalFileReadException() + { + // Setup + string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, + Path.Combine("DikeProfiles", "faulty_unparsableDijk_missingElements.prfl")); + + var reader = new DikeProfileDataReader(); + + // Call + TestDelegate call = () => reader.ReadDikeProfileData(faultyFilePath); + + // Assert + string message = Assert.Throws(call).Message; + string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel 19: Het aantal dijk punten in het bestand (2) komt niet overeen met de aangegeven hoeveelheid dijk punten (4).", + faultyFilePath); + Assert.AreEqual(expectedMessage, message); + } + + [Test] + [TestCase("faulty_unparsableVoorland.prfl", "oidushp9t8w uyp394hp 983 94")] + [TestCase("faulty_unparsableVoorland_noValue1.prfl", "")] + [TestCase("faulty_unparsableVoorland_noValue2.prfl", "")] + public void ReadDikeProfileData_FaultyFileWithUnparsableForeshoreCount_ThrowsCriticalFileReadException( + string faultyFileName, string expectedReadText) + { + // Setup + string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, + Path.Combine("DikeProfiles", faultyFileName)); + + var reader = new DikeProfileDataReader(); + + // Call + TestDelegate call = () => reader.ReadDikeProfileData(faultyFilePath); + + // Assert + string message = Assert.Throws(call).Message; + string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel 9: Het ingelezen aantal voorland punten ({1}) is geen geheel getal.", + faultyFilePath, expectedReadText); + Assert.AreEqual(expectedMessage, message); + } + + [Test] + [TestCase("faulty_unparsableVoorland_Overflow1.prfl", "33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333")] + [TestCase("faulty_unparsableVoorland_Overflow2.prfl", "-55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555")] + public void ReadDikeProfileData_FaultyFileWithOverflowForeshoreCount_ThrowsCriticalFileReadException( + string faultyFileName, string expectedReadText) + { + // Setup + string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, + Path.Combine("DikeProfiles", faultyFileName)); + + var reader = new DikeProfileDataReader(); + + // Call + TestDelegate call = () => reader.ReadDikeProfileData(faultyFilePath); + + // Assert + string message = Assert.Throws(call).Message; + string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel 9: Het ingelezen aantal voorland punten ({1}) is te groot of te klein om ingelezen te worden.", + faultyFilePath, expectedReadText); + Assert.AreEqual(expectedMessage, message); + } + + [Test] + public void ReadDikeProfileData_FaultyFileWithMissingForeshorePoints_ThrowsCriticalFileReadException() + { + // Setup + string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, + Path.Combine("DikeProfiles", "faulty_unparsableVoorland_missingElements.prfl")); + + var reader = new DikeProfileDataReader(); + + // Call + TestDelegate call = () => reader.ReadDikeProfileData(faultyFilePath); + + // Assert + string message = Assert.Throws(call).Message; + string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel 11: Het aantal voorland punten in het bestand (1) komt niet overeen met de aangegeven hoeveelheid voorland punten (3).", + faultyFilePath); + Assert.AreEqual(expectedMessage, message); + } + // TODO: DAMWAND en DAMWAND Type coverage (beide files hebben dezelfde waardes) + + private static void DoReadDikeProfileData_FaultyFileWithRoughnessOutOfRange_ThrowsCriticalFileReadException( + string faultyFileName, double expectedFaultyRoughness, double expectedLineNumber, string expectedLowerLimitText) + { + // Setup + string faultyFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.GrassCoverErosionInwards.IO, + Path.Combine("DikeProfiles", faultyFileName)); + + var reader = new DikeProfileDataReader(); + + // Call + TestDelegate call = () => reader.ReadDikeProfileData(faultyFilePath); + + // Assert + string message = Assert.Throws(call).Message; + string expectedMessage = string.Format("Fout bij het lezen van bestand '{0}' op regel {1}: De ingelezen ruwheid ({2}) moet in het bereik [{3}, 1] vallen.", + faultyFilePath, expectedLineNumber, expectedFaultyRoughness, expectedLowerLimitText); + Assert.AreEqual(expectedMessage, message); + } } } \ No newline at end of file Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_invalidId.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_invalidId.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_invalidId.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,22 @@ +VERSIE 4.0 +ID Id's are not allowed to have any white space! + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0 + +VOORLAND 0 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 2 +0.000 0.000 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +Basis: +geen dam +geen voorland +recht talud Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 069xf837 uo uyhtwuht098y hb3loiu43597 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Overflow1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Overflow1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Overflow1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Overflow2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Overflow2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Overflow2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK -22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 dr;tjn +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness_Overflow1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness_Overflow1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness_Overflow1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 -44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.4 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness_Overflow2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness_Overflow2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness_Overflow2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888.8 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness_noValue1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness_noValue1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness_noValue1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness_noValue2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness_noValue2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Roughness_noValue2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +suhf -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X_NoValue1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X_NoValue1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X_NoValue1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 + +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X_NoValue2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X_NoValue2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X_NoValue2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 + +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X_Overflow1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X_Overflow1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X_Overflow1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X_Overflow2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X_Overflow2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_X_Overflow2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 o;jfhe;lhtvwposiu 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y_Overflow1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y_Overflow1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y_Overflow1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888.8 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y_Overflow2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y_Overflow2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y_Overflow2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 -44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.4 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y_noValue1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y_noValue1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y_noValue1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y_noValue2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y_noValue2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_Y_noValue2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_missingElements.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_missingElements.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_missingElements.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,18 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +18.000 6.000 1.000 \ No newline at end of file Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_noValue1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_noValue1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_noValue1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_noValue2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_noValue2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableDijk_noValue2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableId_noValue1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableId_noValue1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableId_noValue1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,22 @@ +VERSIE 4.0 +ID + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0 + +VOORLAND 0 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 2 +0.000 0.000 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +Basis: +geen dam +geen voorland +recht talud Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableId_noValue2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableId_noValue2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableId_noValue2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,22 @@ +VERSIE 4.0 +ID + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0 + +VOORLAND 0 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 2 +0.000 0.000 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +Basis: +geen dam +geen voorland +recht talud Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND oidushp9t8w uyp394hp 983 94 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Overflow1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Overflow1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Overflow1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Overflow2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Overflow2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Overflow2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND -55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 ;lsduglk wab +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness_Overflow1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness_Overflow1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness_Overflow1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 -44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.4 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness_Overflow2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness_Overflow2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness_Overflow2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 -33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness_noValue1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness_noValue1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness_noValue1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness_noValue2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness_noValue2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Roughness_noValue2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +glkjdhflgkjhsk -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X_NoValue1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X_NoValue1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X_NoValue1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 + +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X_NoValue2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X_NoValue2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X_NoValue2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 + + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X_Overflow1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X_Overflow1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X_Overflow1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X_Overflow2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X_Overflow2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_X_Overflow2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 lijfhsliufghkj 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y_Overflow1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y_Overflow1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y_Overflow1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 77777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777.7 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y_Overflow2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y_Overflow2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y_Overflow2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.4 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y_noValue1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y_noValue1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y_noValue1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y_noValue2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y_noValue2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_Y_noValue2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 +-100.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_missingElements.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_missingElements.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_missingElements.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,10 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND 3 +-150.000 -9.000 1.000 \ No newline at end of file Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_noValue1.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_noValue1.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_noValue1.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_noValue2.prfl =================================================================== diff -u --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_noValue2.prfl (revision 0) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/test-data/DikeProfiles/faulty_unparsableVoorland_noValue2.prfl (revision 02b9c1938c77fec1599daf755bc1e7e70598621c) @@ -0,0 +1,26 @@ +VERSIE 4.0 +ID profiel004 + +RICHTING 330 + +DAM 0 +DAMHOOGTE 0.5 + +VOORLAND +-150.000 -9.000 1.000 +-100.000 -6.000 1.000 +-18.000 -6.000 1.000 + +DAMWAND 0 +KRUINHOOGTE 6 +DIJK 4 +-18.000 -6.000 1.000 +-2.000 -0.100 0.500 +2.000 0.100 1.000 +18.000 6.000 1.000 + +MEMO +Verkenning prfl format: +geen dam +voorland +talud met (ruwe) berm