Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/DikeProfiles/DikeProfileDataReaderTest.cs =================================================================== diff -u -re2b7cf253e2e106ce8b8647e405b883c0c768c18 -r57634f535a347ce49c2491f114d7238d5387c7a8 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/DikeProfiles/DikeProfileDataReaderTest.cs (.../DikeProfileDataReaderTest.cs) (revision e2b7cf253e2e106ce8b8647e405b883c0c768c18) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.IO.Test/DikeProfiles/DikeProfileDataReaderTest.cs (.../DikeProfileDataReaderTest.cs) (revision 57634f535a347ce49c2491f114d7238d5387c7a8) @@ -260,7 +260,7 @@ public void ReadDikeProfileData_FilesWithMissingParameters_ThrowCriticalFileReadException( string faultyFileName, string missingParameterNames) { - string expectedMessage = string.Format("De volgende parameter(s) zijn niet aanwezig in het bestand: {0}", + string expectedMessage = string.Format("De volgende parameters zijn niet aanwezig in het bestand: {0}", missingParameterNames); ReadFileAndExpectCriticalFileReadException(faultyFileName, expectedMessage); } @@ -281,7 +281,7 @@ public void ReadDikeProfileData_FileWithOrientationOutOfRange_ThrowCriticalFileReadException( string faultyFileName, double expectedOrientationInFile) { - string expectedMessage = string.Format("De ingelezen oriëntatie waarde ({0}) moet binnen het bereik [0, 360] vallen.", + string expectedMessage = string.Format("De ingelezen oriëntatie waarde ('{0}') moet binnen het bereik [0, 360] vallen.", expectedOrientationInFile); ReadFileAndExpectCriticalFileReadException(faultyFileName, 4, expectedMessage); } @@ -292,7 +292,7 @@ public void ReadDikeProfileData_FileWithDamTypeOutOfRange_ThrowCriticalFileReadException( string faultyFileName, int expectedDamInFile) { - string expectedMessage = string.Format("De ingelezen dam-type waarde ({0}) moet binnen het bereik [0, 3] vallen.", + string expectedMessage = string.Format("Het ingelezen damtype ('{0}') moet in het bereik {{0, 1, 2, 3}} vallen.", expectedDamInFile); ReadFileAndExpectCriticalFileReadException(faultyFileName, 6, expectedMessage); } @@ -303,15 +303,15 @@ public void ReadDikeProfileData_FileWithProfileTypeOutOfRange_ThrowCriticalFileReadException( string faultyFileName, int expectedDamInFile) { - string expectedMessage = string.Format("De ingelezen damwand-type waarde ({0}) moet binnen het bereik [0, 2] vallen.", + string expectedMessage = string.Format("Het ingelezen damwandtype ('{0}') moet in het bereik {{0, 1, 2}} vallen.", expectedDamInFile); ReadFileAndExpectCriticalFileReadException(faultyFileName, 11, expectedMessage); } [Test] public void ReadDikeProfileData_FileWithNegativeForshorePointCount_ThrowCriticalFileReadException() { - string expectedMessage = "Het ingelezen aantal geometriepunten voorland (-1) mag niet negatief zijn."; + string expectedMessage = "Het ingelezen aantal geometriepunten voorland ('-1') mag niet negatief zijn."; ReadFileAndExpectCriticalFileReadException("faulty_voorlandCountNegative.prfl", 9, expectedMessage); } @@ -346,8 +346,7 @@ public void ReadDikeProfileData_FileWithUnparsableVersion_ThrowCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("De ingelezen versie ({0}) is geen geldige versie code.", - expectedReadText); + string expectedMessage = @"Enkel bestanden van versie '4.0' worden ondersteund."; ReadFileAndExpectCriticalFileReadException(faultyFileName, 1, expectedMessage); } @@ -357,15 +356,15 @@ public void ReadDikeProfileData_FileWithUnparsableId_ThrowCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("De ingelezen ID ({0}) is geen geldig id.", + string expectedMessage = string.Format("De ingelezen ID ('{0}') is ongeldig.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 2, expectedMessage); } [Test] public void ReadDikeProfileData_FileWithInvalidId_ThrowCriticalFileReadException() { - string expectedMessage = @"De ingelezen ID (Id's are not allowed to have any white space!) bevat spaties, welke niet zijn toegestaan."; + string expectedMessage = @"De ingelezen ID ('Id's are not allowed to have any white space!') bevat spaties, welke niet zijn toegestaan."; ReadFileAndExpectCriticalFileReadException("faulty_invalidId.prfl", 2, expectedMessage); } @@ -374,8 +373,7 @@ public void ReadDikeProfileData_FileWithOverflowVersion_ThrowCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("De ingelezen versie ({0}) bevat een versienummer die te groot is.", - expectedReadText); + string expectedMessage = @"Enkel bestanden van versie '4.0' worden ondersteund."; ReadFileAndExpectCriticalFileReadException(faultyFileName, 1, expectedMessage); } @@ -386,7 +384,7 @@ public void ReadDikeProfileData_FileWithUnparsableOrientation_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("De ingelezen oriëntatie ({0}) is geen getal.", + string expectedMessage = string.Format("De ingelezen oriëntatie ('{0}') is geen getal.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 4, expectedMessage); } @@ -397,7 +395,7 @@ public void ReadDikeProfileData_FileWithOverflowOrientation_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("De ingelezen oriëntatie ({0}) is te groot of te klein om ingelezen te worden.", + string expectedMessage = string.Format("De ingelezen oriëntatie ('{0}') is te groot of te klein om ingelezen te worden.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 4, expectedMessage); } @@ -409,7 +407,7 @@ public void ReadDikeProfileData_FileWithUnparsableDamType_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("Het ingelezen dam-type ({0}) is geen geheel getal.", + string expectedMessage = string.Format("Het ingelezen damtype ('{0}') moet in het bereik {{0, 1, 2, 3}} vallen.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 6, expectedMessage); } @@ -420,7 +418,7 @@ public void ReadDikeProfileData_FileWithOverflowDamType_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("Het ingelezen dam-type ({0}) is te groot of te klein om ingelezen te worden.", + string expectedMessage = string.Format("Het ingelezen damtype ('{0}') moet in het bereik {{0, 1, 2, 3}} vallen.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 6, expectedMessage); } @@ -432,7 +430,7 @@ public void ReadDikeProfileData_FileWithUnparsableProfileType_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("Het ingelezen profiel-type ({0}) is geen geheel getal.", + string expectedMessage = string.Format("Het ingelezen damwandtype ('{0}') moet in het bereik {{0, 1, 2}} vallen.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 11, expectedMessage); } @@ -443,7 +441,7 @@ public void ReadDikeProfileData_FileWithOverflowProfileType_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("Het ingelezen profiel-type ({0}) is te groot of te klein om ingelezen te worden.", + string expectedMessage = string.Format("Het ingelezen damwandtype ('{0}') moet in het bereik {{0, 1, 2}} vallen.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 11, expectedMessage); } @@ -455,7 +453,7 @@ public void ReadDikeProfileData_FileWithUnparsableDamHeight_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("De ingelezen damhoogte ({0}) is geen getal.", + string expectedMessage = string.Format("De ingelezen damhoogte ('{0}') is geen getal.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 7, expectedMessage); } @@ -466,7 +464,7 @@ public void ReadDikeProfileData_FileWithOverflowDamHeight_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("De ingelezen damhoogte ({0}) is te groot of te klein om ingelezen te worden.", + string expectedMessage = string.Format("De ingelezen damhoogte ('{0}') is te groot of te klein om ingelezen te worden.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 7, expectedMessage); } @@ -478,7 +476,7 @@ public void ReadDikeProfileData_FileWithUnparsableDikeHeight_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("De ingelezen dijkhoogte ({0}) is geen getal.", + string expectedMessage = string.Format("De ingelezen dijkhoogte ('{0}') is geen getal.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 12, expectedMessage); } @@ -489,7 +487,7 @@ public void ReadDikeProfileData_FileWithOverflowDikeHeight_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("De ingelezen dijkhoogte ({0}) is te groot of te klein om ingelezen te worden.", + string expectedMessage = string.Format("De ingelezen dijkhoogte ('{0}') is te groot of te klein om ingelezen te worden.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 12, expectedMessage); } @@ -501,7 +499,7 @@ public void ReadDikeProfileData_FileWithUnparsableDikeCount_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("Het ingelezen aantal geometriepunten dijk ({0}) is geen geheel getal.", + string expectedMessage = string.Format("Het ingelezen aantal geometriepunten dijk ('{0}') is geen geheel getal.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 16, expectedMessage); } @@ -512,70 +510,70 @@ public void ReadDikeProfileData_FileWithOverflowDijkCount_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("Het ingelezen aantal geometriepunten dijk ({0}) is te groot of te klein om ingelezen te worden.", + string expectedMessage = string.Format("Het ingelezen aantal geometriepunten dijk ('{0}') is te groot of te klein om ingelezen te worden.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 16, expectedMessage); } [Test] public void ReadDikeFileName_FileWithNegativeDikeCount_ThrowsCriticalFileReadException() { - string expectedMessage = "Het ingelezen aantal geometriepunten dijk (-1) mag niet negatief zijn."; + string expectedMessage = "Het ingelezen aantal geometriepunten dijk ('-1') mag niet negatief zijn."; ReadFileAndExpectCriticalFileReadException("faulty_dijkCountNegative.prfl", 13, expectedMessage); } [Test] - [TestCase("faulty_unparsableDijk_X.prfl", 18, "X coördinaat", "suhf")] - [TestCase("faulty_unparsableDijk_X_noValue1.prfl", 18, "X coördinaat", "")] - [TestCase("faulty_unparsableDijk_X_noValue2.prfl", 18, "X coördinaat", "")] - [TestCase("faulty_unparsableDijk_Z.prfl", 20, "Z coördinaat", "o;jfhe;lhtvwposiu")] - [TestCase("faulty_unparsableDijk_Z_noValue1.prfl", 20, "Z coördinaat", "")] - [TestCase("faulty_unparsableDijk_Z_noValue2.prfl", 20, "Z coördinaat", "")] + [TestCase("faulty_unparsableDijk_X.prfl", 18, "X-coördinaat", "suhf")] + [TestCase("faulty_unparsableDijk_X_noValue1.prfl", 18, "X-coördinaat", "")] + [TestCase("faulty_unparsableDijk_X_noValue2.prfl", 18, "X-coördinaat", "")] + [TestCase("faulty_unparsableDijk_Z.prfl", 20, "Z-coördinaat", "o;jfhe;lhtvwposiu")] + [TestCase("faulty_unparsableDijk_Z_noValue1.prfl", 20, "Z-coördinaat", "")] + [TestCase("faulty_unparsableDijk_Z_noValue2.prfl", 20, "Z-coördinaat", "")] [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 coördinaat", "glkjdhflgkjhsk")] - [TestCase("faulty_unparsableVoorland_X_noValue1.prfl", 11, "X coördinaat", "")] - [TestCase("faulty_unparsableVoorland_X_noValue2.prfl", 12, "X coördinaat", "")] - [TestCase("faulty_unparsableVoorland_Z.prfl", 12, "Z coördinaat", "lijfhsliufghkj")] - [TestCase("faulty_unparsableVoorland_Z_noValue1.prfl", 10, "Z coördinaat", "")] - [TestCase("faulty_unparsableVoorland_Z_noValue2.prfl", 11, "Z coördinaat", "")] + [TestCase("faulty_unparsableVoorland_X.prfl", 10, "X-coördinaat", "glkjdhflgkjhsk")] + [TestCase("faulty_unparsableVoorland_X_noValue1.prfl", 11, "X-coördinaat", "")] + [TestCase("faulty_unparsableVoorland_X_noValue2.prfl", 12, "X-coördinaat", "")] + [TestCase("faulty_unparsableVoorland_Z.prfl", 12, "Z-coördinaat", "lijfhsliufghkj")] + [TestCase("faulty_unparsableVoorland_Z_noValue1.prfl", 10, "Z-coördinaat", "")] + [TestCase("faulty_unparsableVoorland_Z_noValue2.prfl", 11, "Z-coördinaat", "")] [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_UnparsableRoughnessPoints_ThrowsCriticalFileReadException( string faultyFileName, int expectedLineNumber, string expectedParameterName, string expectedReadText) { - string expectedMessage = string.Format("De ingelezen {0} ({1}) is geen getal.", + string expectedMessage = string.Format("De ingelezen {0} ('{1}') is geen getal.", expectedParameterName, expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, expectedLineNumber, expectedMessage); } [Test] - [TestCase("faulty_unparsableDijk_X_Overflow1.prfl", 18, "X coördinaat", "99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999")] - [TestCase("faulty_unparsableDijk_X_Overflow2.prfl", 18, "X coördinaat", "-44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444")] - [TestCase("faulty_unparsableDijk_Z_Overflow1.prfl", 19, "Z coördinaat", "88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888.8")] - [TestCase("faulty_unparsableDijk_Z_Overflow2.prfl", 20, "Z coördinaat", "-44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.4")] + [TestCase("faulty_unparsableDijk_X_Overflow1.prfl", 18, "X-coördinaat", "99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999")] + [TestCase("faulty_unparsableDijk_X_Overflow2.prfl", 18, "X-coördinaat", "-44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444")] + [TestCase("faulty_unparsableDijk_Z_Overflow1.prfl", 19, "Z-coördinaat", "88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888.8")] + [TestCase("faulty_unparsableDijk_Z_Overflow2.prfl", 20, "Z-coördinaat", "-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 coördinaat", "55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555")] - [TestCase("faulty_unparsableVoorland_X_Overflow2.prfl", 12, "X coördinaat", "-33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333")] - [TestCase("faulty_unparsableVoorland_Z_Overflow1.prfl", 11, "Z coördinaat", "77777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777.7")] - [TestCase("faulty_unparsableVoorland_Z_Overflow2.prfl", 10, "Z coördinaat", "-44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.4")] + [TestCase("faulty_unparsableVoorland_X_Overflow1.prfl", 11, "X-coördinaat", "55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555")] + [TestCase("faulty_unparsableVoorland_X_Overflow2.prfl", 12, "X-coördinaat", "-33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333")] + [TestCase("faulty_unparsableVoorland_Z_Overflow1.prfl", 11, "Z-coördinaat", "77777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777.7")] + [TestCase("faulty_unparsableVoorland_Z_Overflow2.prfl", 10, "Z-coördinaat", "-44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.4")] [TestCase("faulty_unparsableVoorland_Roughness_Overflow1.prfl", 10, "ruwheid", "-44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444.4")] [TestCase("faulty_unparsableVoorland_Roughness_Overflow2.prfl", 11, "ruwheid", "-33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333")] public void ReadDikeProfileData_OverflowRoughnessPoints_ThrowsCriticalFileReadException( string faultyFileName, int expectedLineNumber, string expectedParameterName, string expectedReadText) { - string expectedMessage = string.Format("De ingelezen {0} ({1}) is te groot of te klein om ingelezen te worden.", + string expectedMessage = string.Format("De ingelezen {0} ('{1}') is te groot of te klein om ingelezen te worden.", expectedParameterName, expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, expectedLineNumber, expectedMessage); } [Test] public void ReadDikeProfileData_FileWithMissingDikePoints_ThrowsCriticalFileReadException() { - string expectedMessage = "Het aantal dijk punten in het bestand (2) komt niet overeen met de aangegeven hoeveelheid dijk punten (4)."; + string expectedMessage = "Het aantal dijk punten in het bestand ('2') komt niet overeen met de aangegeven hoeveelheid dijk punten (4)."; ReadFileAndExpectCriticalFileReadException("faulty_unparsableDijk_missingElements.prfl", 19, expectedMessage); } @@ -600,7 +598,7 @@ public void ReadDikeProfileData_FileWithUnparsableForeshoreCount_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("Het ingelezen aantal geometriepunten voorland ({0}) is geen geheel getal.", + string expectedMessage = string.Format("Het ingelezen aantal geometriepunten voorland ('{0}') is geen geheel getal.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 9, expectedMessage); } @@ -611,7 +609,7 @@ public void ReadDikeProfileData_FileWithOverflowForeshoreCount_ThrowsCriticalFileReadException( string faultyFileName, string expectedReadText) { - string expectedMessage = string.Format("Het ingelezen aantal geometriepunten voorland ({0}) is te groot of te klein om ingelezen te worden.", + string expectedMessage = string.Format("Het ingelezen aantal geometriepunten voorland ('{0}') is te groot of te klein om ingelezen te worden.", expectedReadText); ReadFileAndExpectCriticalFileReadException(faultyFileName, 9, expectedMessage); } @@ -627,7 +625,7 @@ [Test] public void ReadDikeProfileData_FileWithMissingForeshorePoints_ThrowsCriticalFileReadException() { - string expectedMessage = "Het aantal voorland punten in het bestand (1) komt niet overeen met de aangegeven hoeveelheid voorland punten (3)."; + string expectedMessage = "Het aantal voorland punten in het bestand ('1') komt niet overeen met de aangegeven hoeveelheid voorland punten (3)."; ReadFileAndExpectCriticalFileReadException("faulty_unparsableVoorland_missingElements.prfl", 11, expectedMessage); } @@ -689,7 +687,7 @@ private void ReadDikeProfileData_FileWithRoughnessOutOfRange_ThrowsCriticalFileReadException( string faultyFileName, double expectedFaultyRoughness, int expectedLineNumber, string expectedLowerLimitText) { - string expectedMessage = string.Format("De ingelezen ruwheid ({0}) moet binnen het bereik [{1}, 1] vallen.", + string expectedMessage = string.Format("De ingelezen ruwheid ('{0}') moet binnen het bereik [{1}, 1] vallen.", expectedFaultyRoughness, expectedLowerLimitText); ReadFileAndExpectCriticalFileReadException(faultyFileName, expectedLineNumber, expectedMessage); }