Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/Builders/SoilProfileBuilder2DTest.cs =================================================================== diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/Builders/SoilProfileBuilder2DTest.cs (.../SoilProfileBuilder2DTest.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/Builders/SoilProfileBuilder2DTest.cs (.../SoilProfileBuilder2DTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -44,7 +44,7 @@ // Assert var exception = Assert.Throws(test); - string message = $"Geen geldige X waarde gevonden om intersectie te maken uit 2D profiel \'{name}\'."; + string message = $"Geen geldige X waarde gevonden om intersectie te maken uit 2D profiel '{name}'."; Assert.AreEqual(message, exception.Message); } Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/Importers/StochasticSoilModelImporterTest.cs =================================================================== diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/Importers/StochasticSoilModelImporterTest.cs (.../StochasticSoilModelImporterTest.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/Importers/StochasticSoilModelImporterTest.cs (.../StochasticSoilModelImporterTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -543,11 +543,11 @@ // Assert string internalErrorMessage = new FileReaderErrorMessageBuilder(pathToCorruptFile) .WithSubject("ondergrondschematisatie 'Profile'") - .Build("Ondergrondschematisatie bevat geen geldige waarde in kolom \'IntersectionX\'."); + .Build("Ondergrondschematisatie bevat geen geldige waarde in kolom 'IntersectionX'."); var expectedLogMessagesAndLevel = new[] { Tuple.Create($"{internalErrorMessage} {Environment.NewLine}Deze ondergrondschematisatie wordt overgeslagen.", LogLevelConstant.Error), - Tuple.Create("Het stochastische ondergrondmodel \'Name\' heeft een ongespecificeerde ondergrondschematisatie. Dit model wordt overgeslagen.", LogLevelConstant.Warn) + Tuple.Create("Het stochastische ondergrondmodel 'Name' heeft een ongespecificeerde ondergrondschematisatie. Dit model wordt overgeslagen.", LogLevelConstant.Warn) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 2); Assert.AreEqual(8, progress); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfile/MacroStabilityInwardsSoilProfileReaderTest.cs =================================================================== diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfile/MacroStabilityInwardsSoilProfileReaderTest.cs (.../MacroStabilityInwardsSoilProfileReaderTest.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfile/MacroStabilityInwardsSoilProfileReaderTest.cs (.../MacroStabilityInwardsSoilProfileReaderTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -151,7 +151,7 @@ // Assert var exception = Assert.Throws(test); - Assert.AreEqual($"De database heeft niet de vereiste versie informatie. Vereiste versie is \'{version}\'.", exception.Message); + Assert.AreEqual($"De database heeft niet de vereiste versie informatie. Vereiste versie is '{version}'.", exception.Message); Assert.IsTrue(TestHelper.CanOpenFileForWrite(dbFile)); } Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfile/SoilDatabaseVersionReaderTest.cs =================================================================== diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfile/SoilDatabaseVersionReaderTest.cs (.../SoilDatabaseVersionReaderTest.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfile/SoilDatabaseVersionReaderTest.cs (.../SoilDatabaseVersionReaderTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -75,7 +75,7 @@ { // Setup const string version = "15.0.6.0"; - string expectedVersionMessage = $"De database heeft niet de vereiste versie informatie. Vereiste versie is \'{version}\'."; + string expectedVersionMessage = $"De database heeft niet de vereiste versie informatie. Vereiste versie is '{version}'."; const string dbName = "incorrectversion.soil"; string dbFile = Path.Combine(testDataPath, dbName); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfile/StochasticSoilModelReaderTest.cs =================================================================== diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfile/StochasticSoilModelReaderTest.cs (.../StochasticSoilModelReaderTest.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfile/StochasticSoilModelReaderTest.cs (.../StochasticSoilModelReaderTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -167,7 +167,7 @@ { // Setup const string version = "15.0.6.0"; - string expectedVersionMessage = $"De database heeft niet de vereiste versie informatie. Vereiste versie is \'{version}\'."; + string expectedVersionMessage = $"De database heeft niet de vereiste versie informatie. Vereiste versie is '{version}'."; const string dbName = "incorrectversion.soil"; string dbFile = Path.Combine(testDataPath, dbName); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfile/StochasticSoilProfileReaderTest.cs =================================================================== diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfile/StochasticSoilProfileReaderTest.cs (.../StochasticSoilProfileReaderTest.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SoilProfile/StochasticSoilProfileReaderTest.cs (.../StochasticSoilProfileReaderTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -122,7 +122,7 @@ { // Setup const string version = "15.0.6.0"; - string expectedVersionMessage = $"De database heeft niet de vereiste versie informatie. Vereiste versie is \'{version}\'."; + string expectedVersionMessage = $"De database heeft niet de vereiste versie informatie. Vereiste versie is '{version}'."; const string dbName = "incorrectversion.soil"; string dbFile = Path.Combine(testDataPath, dbName); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SurfaceLines/MacroStabilityInwardsSurfaceLinesCsvReaderTest.cs =================================================================== diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SurfaceLines/MacroStabilityInwardsSurfaceLinesCsvReaderTest.cs (.../MacroStabilityInwardsSurfaceLinesCsvReaderTest.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.IO.Test/SurfaceLines/MacroStabilityInwardsSurfaceLinesCsvReaderTest.cs (.../MacroStabilityInwardsSurfaceLinesCsvReaderTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -681,7 +681,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") - .Build($"Ontbrekend scheidingsteken \'{';'}\'."); + .Build($"Ontbrekend scheidingsteken '{';'}'."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -704,7 +704,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") - .Build($"Ontbrekend scheidingsteken \'{';'}\'."); + .Build($"Ontbrekend scheidingsteken '{';'}'."); Assert.AreEqual(expectedMessage, exception.Message); } } Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/FileImporter/MacroStabilityInwardsSurfaceLinesCsvImporterTest.cs =================================================================== diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/FileImporter/MacroStabilityInwardsSurfaceLinesCsvImporterTest.cs (.../MacroStabilityInwardsSurfaceLinesCsvImporterTest.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/FileImporter/MacroStabilityInwardsSurfaceLinesCsvImporterTest.cs (.../MacroStabilityInwardsSurfaceLinesCsvImporterTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -202,7 +202,7 @@ if (callCount <= expectedNumberOfSurfaceLines) { - Assert.AreEqual($"Inlezen \'{twovalidsurfacelinesCsv}\'", currentStepName); + Assert.AreEqual($"Inlezen '{twovalidsurfacelinesCsv}'", currentStepName); } else if (callCount <= expectedNumberOfSurfaceLines + 1 + expectedNumberOfSurfaceLines) { @@ -281,9 +281,9 @@ // Assert var mesages = new[] { - $"Begonnen met het inlezen van profielschematisaties uit bestand \'{validFilePath}\'.", + $"Begonnen met het inlezen van profielschematisaties uit bestand '{validFilePath}'.", "Profielschematisatie Rotterdam1 bevat aaneengesloten dubbele geometriepunten. Deze dubbele punten worden genegeerd.", - $"Klaar met het inlezen van profielschematisaties uit bestand \'{validFilePath}\'." + $"Klaar met het inlezen van profielschematisaties uit bestand '{validFilePath}'." }; TestHelper.AssertLogMessagesAreGenerated(call, mesages, 3); @@ -571,9 +571,9 @@ string internalErrorMessage = new FileReaderErrorMessageBuilder(corruptPath).Build("Het bestand bestaat niet."); var expectedLogMessagesAndLevels = new[] { - Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand \'{corruptPath}\'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), Tuple.Create($"{internalErrorMessage} \r\nHet bestand wordt overgeslagen.", LogLevelConstant.Error), - Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand \'{corruptPath}\'.", LogLevelConstant.Info) + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevels, 3); AssertUnsuccessfulImport(importResult, surfaceLineUpdateStrategy); @@ -603,8 +603,8 @@ .Build("Het bestand is leeg."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand \'{corruptPath}\'.", LogLevelConstant.Info), - Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand \'{corruptPath}\'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), Tuple.Create($"{internalErrorMessage} \r\nHet bestand wordt overgeslagen.", LogLevelConstant.Error) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 3); @@ -635,9 +635,9 @@ .Build("Het bestand is niet geschikt om profielschematisaties uit te lezen (Verwachte koptekst: locationid;X1;Y1;Z1)."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand \'{corruptPath}\'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), Tuple.Create($"{internalErrorMessage} \r\nHet bestand wordt overgeslagen.", LogLevelConstant.Error), - Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand \'{corruptPath}\'.", LogLevelConstant.Info) + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 3); AssertUnsuccessfulImport(importResult, surfaceLineUpdateStrategy); @@ -674,8 +674,8 @@ string internalErrorMessage = new FileReaderErrorMessageBuilder(copyTargetPath).Build("Het bestand bestaat niet."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand \'{copyTargetPath}\'.", LogLevelConstant.Info), - Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand \'{copyTargetPath}\'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{copyTargetPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{copyTargetPath}'.", LogLevelConstant.Info), Tuple.Create($"{internalErrorMessage} \r\nHet bestand wordt overgeslagen.", LogLevelConstant.Error) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 3); @@ -718,11 +718,11 @@ Action call = () => importResult = importer.Import(); // Assert - const string duplicateDefinitionMessage = "Meerdere definities gevonden voor profielschematisatie \'Rotterdam1\'. Alleen de eerste definitie wordt geïmporteerd."; + const string duplicateDefinitionMessage = "Meerdere definities gevonden voor profielschematisatie 'Rotterdam1'. Alleen de eerste definitie wordt geïmporteerd."; var expectedLogMessagesAndLevel = new[] { - Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand \'{corruptPath}\'.", LogLevelConstant.Info), - Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand \'{corruptPath}\'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), Tuple.Create(duplicateDefinitionMessage, LogLevelConstant.Warn) }; @@ -770,8 +770,8 @@ .Build("Profielschematisatie heeft een coördinaatwaarde die niet omgezet kan worden naar een getal."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand \'{corruptPath}\'.", LogLevelConstant.Info), - Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand \'{corruptPath}\'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), Tuple.Create($"{internalErrorMessage} \r\nDeze profielschematisatie wordt overgeslagen.", LogLevelConstant.Error) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 3); @@ -824,8 +824,8 @@ .Build("Profielschematisatie heeft een teruglopende geometrie (punten behoren een oplopende set L-coördinaten te hebben in het lokale coördinatenstelsel)."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand \'{path}\'.", LogLevelConstant.Info), - Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand \'{path}\'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{path}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{path}'.", LogLevelConstant.Info), Tuple.Create($"{internalErrorMessage} \r\nDeze profielschematisatie wordt overgeslagen.", LogLevelConstant.Error) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 3); @@ -864,8 +864,8 @@ .Build("Profielschematisatie heeft een geometrie die een lijn met lengte 0 beschrijft."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand \'{path}\'.", LogLevelConstant.Info), - Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand \'{path}\'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{path}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{path}'.", LogLevelConstant.Info), Tuple.Create($"{internalErrorMessage} \r\nDeze profielschematisatie wordt overgeslagen.", LogLevelConstant.Error) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 3); Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/TreeNodeInfos/MacroStabilityInwardsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/TreeNodeInfos/MacroStabilityInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../MacroStabilityInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Plugin.Test/TreeNodeInfos/MacroStabilityInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../MacroStabilityInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -453,7 +453,7 @@ { // Assert TestHelper.AssertContextMenuStripContainsItem(menu, customOnlyContextMenuAddGenerateCalculationsIndex, - "Genereer &scenario\'s...", + "Genereer &scenario's...", "Er zijn geen profielschematisaties of stochastische ondergrondmodellen beschikbaar om berekeningen voor te genereren.", RingtoetsCommonFormsResources.GenerateScenariosIcon, false); @@ -495,7 +495,7 @@ { // Assert TestHelper.AssertContextMenuStripContainsItem(menu, customOnlyContextMenuAddGenerateCalculationsIndex, - "Genereer &scenario\'s...", + "Genereer &scenario's...", "Er zijn geen profielschematisaties of stochastische ondergrondmodellen beschikbaar om berekeningen voor te genereren.", RingtoetsCommonFormsResources.GenerateScenariosIcon, false); @@ -540,8 +540,8 @@ { // Assert TestHelper.AssertContextMenuStripContainsItem(menu, customOnlyContextMenuAddGenerateCalculationsIndex, - "Genereer &scenario\'s...", - "Genereer scenario\'s op basis van geselecteerde profielschematisaties.", + "Genereer &scenario's...", + "Genereer scenario's op basis van geselecteerde profielschematisaties.", RingtoetsCommonFormsResources.GenerateScenariosIcon); } } Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/PipingSoilProfileTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/PipingSoilProfileTest.cs (.../PipingSoilProfileTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/PipingSoilProfileTest.cs (.../PipingSoilProfileTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -27,7 +27,6 @@ using Core.Common.TestUtil; using NUnit.Framework; using Ringtoets.Piping.Primitives; -using PrimitivesResources = Ringtoets.Piping.Primitives.Properties.Resources; namespace Ringtoets.Piping.Data.Test { @@ -69,7 +68,7 @@ TestDelegate test = () => new PipingSoilProfile(string.Empty, double.NaN, new Collection(), SoilProfileType.SoilProfile1D, 0); // Assert - string expectedMessage = PrimitivesResources.Error_Cannot_Construct_PipingSoilProfile_Without_Layers; + const string expectedMessage = "Geen lagen gevonden voor de ondergrondschematisatie."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); } @@ -80,7 +79,7 @@ TestDelegate test = () => new PipingSoilProfile(string.Empty, double.NaN, null, SoilProfileType.SoilProfile1D, 0); // Assert - string expectedMessage = PrimitivesResources.Error_Cannot_Construct_PipingSoilProfile_Without_Layers; + const string expectedMessage = "Geen lagen gevonden voor de ondergrondschematisatie."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); } Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/RingtoetsPipingSurfaceLineTest.cs =================================================================== diff -u -r581725e1056b02305f9ec09bc8501882b23657bd -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/RingtoetsPipingSurfaceLineTest.cs (.../RingtoetsPipingSurfaceLineTest.cs) (revision 581725e1056b02305f9ec09bc8501882b23657bd) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/RingtoetsPipingSurfaceLineTest.cs (.../RingtoetsPipingSurfaceLineTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -28,10 +28,8 @@ using Core.Common.TestUtil; using NUnit.Framework; using Ringtoets.Common.Data.TestUtil; -using Ringtoets.Piping.Data.Properties; using Ringtoets.Piping.Primitives; using Ringtoets.Piping.Primitives.Exceptions; -using PipingPrimitivesResources = Ringtoets.Piping.Primitives.Properties.Resources; namespace Ringtoets.Piping.Data.Test { @@ -206,7 +204,7 @@ // Assert var exception = Assert.Throws(test); - StringAssert.StartsWith(PipingPrimitivesResources.RingtoetsPipingSurfaceLine_Collection_of_points_for_geometry_is_null, exception.Message); + StringAssert.StartsWith("De geometrie die opgegeven werd voor de profielschematisatie heeft geen waarde.", exception.Message); } [Test] @@ -223,7 +221,7 @@ // Assert var exception = Assert.Throws(test); - StringAssert.StartsWith(PipingPrimitivesResources.RingtoetsPipingSurfaceLine_A_point_in_the_collection_was_null, exception.Message); + StringAssert.StartsWith("Een punt in de geometrie voor de profielschematisatie heeft geen waarde.", exception.Message); } [Test] @@ -238,7 +236,7 @@ // Assert string exceptionMessage = Assert.Throws(test).Message; - Assert.AreEqual(PipingPrimitivesResources.RingtoetsPipingSurfaceLine_SurfaceLine_has_no_Geometry, exceptionMessage); + Assert.AreEqual("De profielschematisatie heeft geen geometrie.", exceptionMessage); } [Test] @@ -311,7 +309,7 @@ // Assert var exception = Assert.Throws(test); - string message = string.Format(PipingPrimitivesResources.RingtoetsPipingSurfaceLine_Cannot_determine_reliable_z_when_surface_line_is_vertical_in_l, l); + string message = $"Kan geen hoogte bepalen op het punt met de lokale coördinaat {l}, omdat de profielschematisatie verticaal loopt op dat punt."; Assert.AreEqual(message, exception.Message); } @@ -363,8 +361,7 @@ TestDelegate test = () => surfaceLine.SetDitchPolderSideAt(testPoint); // Assert - string expectedMessage = string.Format(Resources.RingtoetsPipingSurfaceLine_SetCharacteristicPointAt_Geometry_does_not_contain_point_at_0_to_assign_as_characteristic_point_1_, - testPoint, Resources.CharacteristicPoint_DitchPolderSide); + string expectedMessage = $"De geometrie bevat geen punt op locatie {testPoint} om als 'Insteek sloot polderzijde' in te stellen."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); } @@ -413,8 +410,7 @@ TestDelegate test = () => surfaceLine.SetBottomDitchPolderSideAt(testPoint); // Assert - string expectedMessage = string.Format(Resources.RingtoetsPipingSurfaceLine_SetCharacteristicPointAt_Geometry_does_not_contain_point_at_0_to_assign_as_characteristic_point_1_, - testPoint, Resources.CharacteristicPoint_BottomDitchPolderSide); + string expectedMessage = $"De geometrie bevat geen punt op locatie {testPoint} om als 'Slootbodem polderzijde' in te stellen."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); } @@ -463,8 +459,7 @@ TestDelegate test = () => surfaceLine.SetBottomDitchDikeSideAt(testPoint); // Assert - string expectedMessage = string.Format(Resources.RingtoetsPipingSurfaceLine_SetCharacteristicPointAt_Geometry_does_not_contain_point_at_0_to_assign_as_characteristic_point_1_, - testPoint, Resources.CharacteristicPoint_BottomDitchDikeSide); + string expectedMessage = $"De geometrie bevat geen punt op locatie {testPoint} om als 'Slootbodem dijkzijde' in te stellen."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); } @@ -513,8 +508,7 @@ TestDelegate test = () => surfaceLine.SetDitchDikeSideAt(testPoint); // Assert - string message = string.Format(Resources.RingtoetsPipingSurfaceLine_SetCharacteristicPointAt_Geometry_does_not_contain_point_at_0_to_assign_as_characteristic_point_1_, - testPoint, Resources.CharacteristicPoint_DitchDikeSide); + string message = $"De geometrie bevat geen punt op locatie {testPoint} om als 'Insteek sloot dijkzijde' in te stellen."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, message); } @@ -563,8 +557,7 @@ TestDelegate test = () => surfaceLine.SetDikeToeAtRiverAt(testPoint); // Assert - string expectedMessage = string.Format(Resources.RingtoetsPipingSurfaceLine_SetCharacteristicPointAt_Geometry_does_not_contain_point_at_0_to_assign_as_characteristic_point_1_, - testPoint, Resources.CharacteristicPoint_DikeToeAtRiver); + string expectedMessage = $"De geometrie bevat geen punt op locatie {testPoint} om als 'Teen dijk buitenwaarts' in te stellen."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); } @@ -613,8 +606,7 @@ TestDelegate test = () => surfaceLine.SetDikeToeAtPolderAt(testPoint); // Assert - string expectedMessage = string.Format(Resources.RingtoetsPipingSurfaceLine_SetCharacteristicPointAt_Geometry_does_not_contain_point_at_0_to_assign_as_characteristic_point_1_, - testPoint, Resources.CharacteristicPoint_DikeToeAtPolder); + string expectedMessage = $"De geometrie bevat geen punt op locatie {testPoint} om als 'Teen dijk binnenwaarts' in te stellen."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); } Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Factories/PipingMapDataFactoryTest.cs =================================================================== diff -u -rf1f94637a6b45b394493bf16a078b317c02d329b -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Factories/PipingMapDataFactoryTest.cs (.../PipingMapDataFactoryTest.cs) (revision f1f94637a6b45b394493bf16a078b317c02d329b) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Factories/PipingMapDataFactoryTest.cs (.../PipingMapDataFactoryTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -25,7 +25,6 @@ using Core.Components.Gis.Style; using NUnit.Framework; using Ringtoets.Piping.Forms.Factories; -using PipingDataResources = Ringtoets.Piping.Data.Properties.Resources; namespace Ringtoets.Piping.Forms.Test.Factories { @@ -40,7 +39,7 @@ // Assert Assert.IsEmpty(data.Features); - Assert.AreEqual(PipingDataResources.PipingSurfaceLineCollection_TypeDescriptor, data.Name); + Assert.AreEqual("Profielschematisaties", data.Name); AssertEqualStyle(data.Style, Color.DarkSeaGreen, 2, DashStyle.Solid); Assert.AreEqual("Naam", data.SelectedMetaDataAttribute); } @@ -53,7 +52,7 @@ // Assert Assert.IsEmpty(data.Features); - Assert.AreEqual(PipingDataResources.StochasticSoilModelCollection_TypeDescriptor, data.Name); + Assert.AreEqual("Stochastische ondergrondmodellen", data.Name); AssertEqualStyle(data.Style, Color.FromArgb(70, Color.SaddleBrown), 5, DashStyle.Solid); Assert.AreEqual("Naam", data.SelectedMetaDataAttribute); } Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/Builders/SoilLayer2DTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/Builders/SoilLayer2DTest.cs (.../SoilLayer2DTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/Builders/SoilLayer2DTest.cs (.../SoilLayer2DTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -28,7 +28,6 @@ using Ringtoets.Piping.Data.TestUtil; using Ringtoets.Piping.IO.Builders; using Ringtoets.Piping.IO.Exceptions; -using Ringtoets.Piping.IO.Properties; using Ringtoets.Piping.Primitives; namespace Ringtoets.Piping.IO.Test.Builders @@ -831,7 +830,7 @@ // Assert var exception = Assert.Throws(test); - Assert.AreEqual(string.Format(Resources.Error_Can_not_determine_1D_profile_with_vertical_segments_at_X_0_, atX), exception.Message); + Assert.AreEqual($"Er kan geen 1D-profiel bepaald worden wanneer segmenten in een 2D laag verticaal lopen op de gekozen positie: x = {atX}.", exception.Message); } [Test] @@ -869,7 +868,7 @@ // Assert var exception = Assert.Throws(test); - Assert.AreEqual(string.Format(Resources.Error_Can_not_determine_1D_profile_with_vertical_segments_at_X_0_, atX), exception.Message); + Assert.AreEqual($"Er kan geen 1D-profiel bepaald worden wanneer segmenten in een 2D laag verticaal lopen op de gekozen positie: x = {atX}.", exception.Message); } [Test] Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/Builders/SoilProfileBuilder2DTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/Builders/SoilProfileBuilder2DTest.cs (.../SoilProfileBuilder2DTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/Builders/SoilProfileBuilder2DTest.cs (.../SoilProfileBuilder2DTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -27,7 +27,6 @@ using Ringtoets.Piping.Data.TestUtil; using Ringtoets.Piping.IO.Builders; using Ringtoets.Piping.IO.Exceptions; -using Ringtoets.Piping.IO.Properties; using Ringtoets.Piping.Primitives; namespace Ringtoets.Piping.IO.Test.Builders @@ -45,7 +44,7 @@ // Assert var exception = Assert.Throws(test); - string message = string.Format(Resources.Error_SoilProfileBuilder_cant_determine_intersect_SoilProfileName_0_at_double_NaN, name); + string message = $"Geen geldige X waarde gevonden om intersectie te maken uit 2D profiel '{name}'."; Assert.AreEqual(message, exception.Message); } Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/CriticalProfilePropertiesTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/CriticalProfilePropertiesTest.cs (.../CriticalProfilePropertiesTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/CriticalProfilePropertiesTest.cs (.../CriticalProfilePropertiesTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -25,7 +25,6 @@ using Core.Common.Utils.Builders; using NUnit.Framework; using Rhino.Mocks; -using Ringtoets.Piping.IO.Properties; using Ringtoets.Piping.IO.SoilProfile; using Ringtoets.Piping.IO.SoilProfile.Schema; @@ -90,7 +89,7 @@ var exception = Assert.Throws(test); Assert.AreSame(invalidCastException, exception.InnerException); string expectedMessage = new FileReaderErrorMessageBuilder(path) - .Build(Resources.PipingSoilProfileReader_Critical_Unexpected_value_on_column); + .Build("Kritieke fout opgetreden bij het uitlezen van waardes uit kolommen in de database."); Assert.AreEqual(expectedMessage, exception.Message); mocks.VerifyAll(); @@ -118,8 +117,8 @@ var exception = Assert.Throws(test); Assert.AreSame(invalidCastException, exception.InnerException); string expectedMessage = new FileReaderErrorMessageBuilder(path) - .WithSubject(string.Format("ondergrondschematisatie '{0}'", profileName)) - .Build(Resources.PipingSoilProfileReader_Critical_Unexpected_value_on_column); + .WithSubject($"ondergrondschematisatie '{profileName}'") + .Build("Kritieke fout opgetreden bij het uitlezen van waardes uit kolommen in de database."); Assert.AreEqual(expectedMessage, exception.Message); mocks.VerifyAll(); Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/PipingSoilProfileReaderTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/PipingSoilProfileReaderTest.cs (.../PipingSoilProfileReaderTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/PipingSoilProfileReaderTest.cs (.../PipingSoilProfileReaderTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -30,10 +30,8 @@ using Core.Common.Utils.Builders; using NUnit.Framework; using Ringtoets.Piping.IO.Exceptions; -using Ringtoets.Piping.IO.Properties; using Ringtoets.Piping.IO.SoilProfile; using Ringtoets.Piping.Primitives; -using UtilsResources = Core.Common.Utils.Properties.Resources; namespace Ringtoets.Piping.IO.Test.SoilProfile { @@ -56,7 +54,7 @@ // Assert var exception = Assert.Throws(test); - string expectedMessage = new FileReaderErrorMessageBuilder(testFile).Build(UtilsResources.Error_File_does_not_exist); + string expectedMessage = new FileReaderErrorMessageBuilder(testFile).Build("Het bestand bestaat niet."); Assert.AreEqual(expectedMessage, exception.Message); } @@ -85,7 +83,7 @@ // Setup string dbFile = Path.Combine(testDataPath, dbName); string expectedMessage = new FileReaderErrorMessageBuilder(dbFile) - .Build(string.Format(Resources.PipingSoilProfileReader_Critical_Unexpected_value_on_column, dbName)); + .Build("Kritieke fout opgetreden bij het uitlezen van waardes uit kolommen in de database."); // Precondition Assert.IsTrue(TestHelper.CanOpenFileForWrite(dbFile), "Precondition: file can be opened for edits."); @@ -153,7 +151,7 @@ // Assert var exception = Assert.Throws(test); - Assert.AreEqual(string.Format(Resources.PipingSoilProfileReader_Database_incorrect_version_requires_Version_0_, version), exception.Message); + Assert.AreEqual($"De database heeft niet de vereiste versie informatie. Vereiste versie is '{version}'.", exception.Message); Assert.IsTrue(TestHelper.CanOpenFileForWrite(dbFile)); } @@ -243,7 +241,7 @@ var exception = Assert.Throws(profile); string expectedMessage = new FileReaderErrorMessageBuilder(databaseFilePath) .WithSubject("ondergrondschematisatie 'Profile'") - .Build(Resources.SoilLayer2DReader_Geometry_contains_no_valid_xml); + .Build("Het XML-document dat de geometrie beschrijft voor de laag is niet geldig."); Assert.AreEqual(expectedMessage, exception.Message); // Call @@ -272,7 +270,7 @@ var exception = Assert.Throws(profile); string message = new FileReaderErrorMessageBuilder(databaseFilePath) .WithSubject("ondergrondschematisatie 'Profile'") - .Build(string.Format(Resources.Error_Can_not_determine_1D_profile_with_vertical_segments_at_X_0_, 85.2)); + .Build($"Er kan geen 1D-profiel bepaald worden wanneer segmenten in een 2D laag verticaal lopen op de gekozen positie: x = {85.2}."); Assert.AreEqual(message, exception.Message); // Call Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/SoilDatabaseVersionReaderTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/SoilDatabaseVersionReaderTest.cs (.../SoilDatabaseVersionReaderTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/SoilDatabaseVersionReaderTest.cs (.../SoilDatabaseVersionReaderTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -24,9 +24,7 @@ using Core.Common.TestUtil; using Core.Common.Utils.Builders; using NUnit.Framework; -using Ringtoets.Piping.IO.Properties; using Ringtoets.Piping.IO.SoilProfile; -using UtilsResources = Core.Common.Utils.Properties.Resources; namespace Ringtoets.Piping.IO.Test.SoilProfile { @@ -49,7 +47,7 @@ // Assert var exception = Assert.Throws(test); - string expectedMessage = new FileReaderErrorMessageBuilder(testFile).Build(UtilsResources.Error_File_does_not_exist); + string expectedMessage = new FileReaderErrorMessageBuilder(testFile).Build("Het bestand bestaat niet."); Assert.AreEqual(expectedMessage, exception.Message); } @@ -77,7 +75,7 @@ { // Setup const string version = "15.0.6.0"; - string expectedVersionMessage = string.Format(Resources.PipingSoilProfileReader_Database_incorrect_version_requires_Version_0_, version); + string expectedVersionMessage = $"De database heeft niet de vereiste versie informatie. Vereiste versie is '{version}'."; const string dbName = "incorrectversion.soil"; string dbFile = Path.Combine(testDataPath, dbName); Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/SoilLayer2DReaderTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/SoilLayer2DReaderTest.cs (.../SoilLayer2DReaderTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/SoilLayer2DReaderTest.cs (.../SoilLayer2DReaderTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -28,7 +28,6 @@ using NUnit.Framework; using Ringtoets.Piping.IO.Builders; using Ringtoets.Piping.IO.Exceptions; -using Ringtoets.Piping.IO.Properties; using Ringtoets.Piping.IO.SoilProfile; using Ringtoets.Piping.IO.Test.TestHelpers; @@ -59,7 +58,7 @@ // Assert var exception = Assert.Throws(test); - Assert.AreEqual(Resources.SoilLayer2DReader_Geometry_contains_no_valid_xml, exception.Message); + Assert.AreEqual("Het XML-document dat de geometrie beschrijft voor de laag is niet geldig.", exception.Message); } [Test] @@ -74,7 +73,7 @@ // Assert var exception = Assert.Throws(test); - Assert.AreEqual(Resources.SoilLayer2DReader_Geometry_contains_no_valid_xml, exception.Message); + Assert.AreEqual("Het XML-document dat de geometrie beschrijft voor de laag is niet geldig.", exception.Message); } [Test] @@ -89,7 +88,7 @@ // Assert var exception = Assert.Throws(test); - Assert.AreEqual(Resources.SoilLayer2DReader_Geometry_contains_no_valid_xml, exception.Message); + Assert.AreEqual("Het XML-document dat de geometrie beschrijft voor de laag is niet geldig.", exception.Message); } [Test] @@ -104,7 +103,7 @@ // Assert var exception = Assert.Throws(test); - Assert.AreEqual(Resources.SoilLayer2DReader_Geometry_contains_no_valid_xml, exception.Message); + Assert.AreEqual("Het XML-document dat de geometrie beschrijft voor de laag is niet geldig.", exception.Message); } [Test] @@ -142,7 +141,7 @@ // Assert var exception = Assert.Throws(test); - Assert.AreEqual(Resources.SoilLayer2DReader_Could_not_parse_point_location, exception.Message); + Assert.AreEqual("Coördinaat van een punt bevat ongeldige waarde.", exception.Message); } [Test] @@ -161,7 +160,7 @@ // Assert var exception = Assert.Throws(test); - Assert.AreEqual(Resources.SoilLayer2DReader_Could_not_parse_point_location, exception.Message); + Assert.AreEqual("Coördinaat van een punt bevat ongeldige waarde.", exception.Message); } [Test] Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/StochasticSoilModelReaderTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/StochasticSoilModelReaderTest.cs (.../StochasticSoilModelReaderTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/StochasticSoilModelReaderTest.cs (.../StochasticSoilModelReaderTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -28,9 +28,7 @@ using Core.Common.Utils.Builders; using NUnit.Framework; using Ringtoets.Piping.Data; -using Ringtoets.Piping.IO.Properties; using Ringtoets.Piping.IO.SoilProfile; -using UtilsResources = Core.Common.Utils.Properties.Resources; namespace Ringtoets.Piping.IO.Test.SoilProfile { @@ -53,7 +51,7 @@ // Assert var exception = Assert.Throws(test); - string expectedMessage = new FileReaderErrorMessageBuilder(testFile).Build(UtilsResources.Error_File_does_not_exist); + string expectedMessage = new FileReaderErrorMessageBuilder(testFile).Build("Het bestand bestaat niet."); Assert.AreEqual(expectedMessage, exception.Message); } @@ -83,7 +81,7 @@ // Setup string dbFile = Path.Combine(testDataPath, dbName); string expectedMessage = new FileReaderErrorMessageBuilder(dbFile). - Build(string.Format(Resources.PipingSoilProfileReader_Critical_Unexpected_value_on_column, dbName)); + Build("Kritieke fout opgetreden bij het uitlezen van waardes uit kolommen in de database."); // Precondition Assert.IsTrue(TestHelper.CanOpenFileForWrite(dbFile), "Precondition: file can be opened for edits."); @@ -169,7 +167,7 @@ { // Setup const string version = "15.0.6.0"; - string expectedVersionMessage = string.Format(Resources.PipingSoilProfileReader_Database_incorrect_version_requires_Version_0_, version); + string expectedVersionMessage = $"De database heeft niet de vereiste versie informatie. Vereiste versie is '{version}'."; const string dbName = "incorrectversion.soil"; string dbFile = Path.Combine(testDataPath, dbName); @@ -233,7 +231,7 @@ const string dbName = "invalidSegmentPoint.soil"; string dbFile = Path.Combine(testDataPath, dbName); string expectedMessage = new FileReaderErrorMessageBuilder(dbFile) - .Build(Resources.StochasticSoilProfileDatabaseReader_StochasticSoilProfile_has_invalid_value); + .Build("De ondergrondschematisatie verwijst naar een ongeldige waarde."); using (var stochasticSoilModelDatabaseReader = new StochasticSoilModelReader(dbFile)) { Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/StochasticSoilProfileReaderTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/StochasticSoilProfileReaderTest.cs (.../StochasticSoilProfileReaderTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/StochasticSoilProfileReaderTest.cs (.../StochasticSoilProfileReaderTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -28,10 +28,8 @@ using NUnit.Framework; using Ringtoets.Piping.Data; using Ringtoets.Piping.IO.Exceptions; -using Ringtoets.Piping.IO.Properties; using Ringtoets.Piping.IO.SoilProfile; using Ringtoets.Piping.Primitives; -using UtilsResources = Core.Common.Utils.Properties.Resources; namespace Ringtoets.Piping.IO.Test.SoilProfile { @@ -54,7 +52,7 @@ // Assert var exception = Assert.Throws(test); - string expectedMessage = new FileReaderErrorMessageBuilder(testFile).Build(UtilsResources.Error_File_does_not_exist); + string expectedMessage = new FileReaderErrorMessageBuilder(testFile).Build("Het bestand bestaat niet."); Assert.AreEqual(expectedMessage, exception.Message); } @@ -85,7 +83,7 @@ // Setup string dbFile = Path.Combine(testDataPath, dbName); string expectedMessage = new FileReaderErrorMessageBuilder(dbFile). - Build(string.Format(Resources.PipingSoilProfileReader_Critical_Unexpected_value_on_column, dbName)); + Build("Kritieke fout opgetreden bij het uitlezen van waardes uit kolommen in de database."); // Precondition Assert.IsTrue(TestHelper.CanOpenFileForWrite(dbFile), "Precondition: file can be opened for edits."); @@ -124,7 +122,7 @@ { // Setup const string version = "15.0.6.0"; - string expectedVersionMessage = string.Format(Resources.PipingSoilProfileReader_Database_incorrect_version_requires_Version_0_, version); + string expectedVersionMessage = $"De database heeft niet de vereiste versie informatie. Vereiste versie is '{version}'."; const string dbName = "incorrectversion.soil"; string dbFile = Path.Combine(testDataPath, dbName); @@ -208,7 +206,7 @@ string dbFile = Path.Combine(testDataPath, dbName); const long stochasticProfileId = 1; string expectedMessage = new FileReaderErrorMessageBuilder(dbFile) - .Build(Resources.StochasticSoilProfileDatabaseReader_StochasticSoilProfile_has_invalid_value); + .Build("De ondergrondschematisatie verwijst naar een ongeldige waarde."); using (var stochasticSoilProfileReader = new StochasticSoilProfileReader(dbFile)) { @@ -232,7 +230,7 @@ string dbFile = Path.Combine(testDataPath, dbName); const long stochasticProfileId = 1; string expectedMessage = new FileReaderErrorMessageBuilder(dbFile) - .Build(Resources.StochasticSoilProfileDatabaseReader_StochasticSoilProfile_has_invalid_value); + .Build("De ondergrondschematisatie verwijst naar een ongeldige waarde."); using (var stochasticSoilProfileReader = new StochasticSoilProfileReader(dbFile)) { Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SurfaceLines/CharacteristicPointsCsvReaderTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SurfaceLines/CharacteristicPointsCsvReaderTest.cs (.../CharacteristicPointsCsvReaderTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SurfaceLines/CharacteristicPointsCsvReaderTest.cs (.../CharacteristicPointsCsvReaderTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -27,9 +27,7 @@ using Core.Common.TestUtil; using Core.Common.Utils.Builders; using NUnit.Framework; -using Ringtoets.Piping.IO.Properties; using Ringtoets.Piping.IO.SurfaceLines; -using UtilsResources = Core.Common.Utils.Properties.Resources; namespace Ringtoets.Piping.IO.Test.SurfaceLines { @@ -48,7 +46,7 @@ TestDelegate call = () => new CharacteristicPointsCsvReader(path); // Assert - string expectedMessage = new FileReaderErrorMessageBuilder(path).Build(UtilsResources.Error_Path_must_be_specified); + string expectedMessage = new FileReaderErrorMessageBuilder(path).Build("Bestandspad mag niet leeg of ongedefinieerd zijn."); TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, expectedMessage); } @@ -79,7 +77,7 @@ // Assert var exception = Assert.Throws(call); - string expectedMessage = new FileReaderErrorMessageBuilder(testDataPath).Build(UtilsResources.Error_Path_must_not_point_to_empty_file_name); + string expectedMessage = new FileReaderErrorMessageBuilder(testDataPath).Build("Bestandspad mag niet verwijzen naar een lege bestandsnaam."); Assert.AreEqual(expectedMessage, exception.Message); } @@ -132,7 +130,7 @@ // Assert var exception = Assert.Throws(call); - string expectedError = new FileReaderErrorMessageBuilder(path).Build(UtilsResources.Error_File_does_not_exist); + string expectedError = new FileReaderErrorMessageBuilder(path).Build("Het bestand bestaat niet."); Assert.AreEqual(expectedError, exception.Message); Assert.IsInstanceOf(exception.InnerException); } @@ -154,7 +152,7 @@ // Assert var exception = Assert.Throws(call); - string expectedMessage = new FileReaderErrorMessageBuilder(path).Build(UtilsResources.Error_Directory_missing); + string expectedMessage = new FileReaderErrorMessageBuilder(path).Build("Het bestandspad verwijst naar een map die niet bestaat."); Assert.AreEqual(expectedMessage, exception.Message); Assert.IsInstanceOf(exception.InnerException); } @@ -178,7 +176,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 1") - .Build(UtilsResources.Error_File_empty); + .Build("Het bestand is leeg."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -193,7 +191,7 @@ public void GetLocationsCount_FileHasColumnsMissingInHeader_ThrowCriticalFileReadException(string malformattedVariableName) { // Setup - string path = Path.Combine(testDataPath, string.Format("1location_column_missing_{0}.krp.csv", malformattedVariableName)); + string path = Path.Combine(testDataPath, $"1location_column_missing_{malformattedVariableName}.krp.csv"); // Precondition Assert.IsTrue(File.Exists(path)); @@ -207,7 +205,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 1") - .Build(Resources.CharacteristicPointsCsvReader_File_invalid_header); + .Build("Het bestand is niet geschikt om karakteristieke punten uit te lezen: koptekst komt niet overeen met wat verwacht wordt."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -230,7 +228,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 1") - .Build(Resources.CharacteristicPointsCsvReader_File_invalid_header); + .Build("Het bestand is niet geschikt om karakteristieke punten uit te lezen: koptekst komt niet overeen met wat verwacht wordt."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -253,7 +251,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 1") - .Build(Resources.CharacteristicPointsCsvReader_File_invalid_header); + .Build("Het bestand is niet geschikt om karakteristieke punten uit te lezen: koptekst komt niet overeen met wat verwacht wordt."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -319,7 +317,7 @@ // Assert var exception = Assert.Throws(call); - string expectedMessage = new FileReaderErrorMessageBuilder(path).Build(UtilsResources.Error_File_does_not_exist); + string expectedMessage = new FileReaderErrorMessageBuilder(path).Build("Het bestand bestaat niet."); Assert.AreEqual(expectedMessage, exception.Message); Assert.IsInstanceOf(exception.InnerException); } @@ -341,7 +339,7 @@ // Assert var exception = Assert.Throws(call); - string expectedMessage = new FileReaderErrorMessageBuilder(path).Build(UtilsResources.Error_Directory_missing); + string expectedMessage = new FileReaderErrorMessageBuilder(path).Build("Het bestandspad verwijst naar een map die niet bestaat."); Assert.AreEqual(expectedMessage, exception.Message); Assert.IsInstanceOf(exception.InnerException); } @@ -365,7 +363,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 1") - .Build(UtilsResources.Error_File_empty); + .Build("Het bestand is leeg."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -388,7 +386,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 1") - .Build(Resources.CharacteristicPointsCsvReader_File_invalid_header); + .Build("Het bestand is niet geschikt om karakteristieke punten uit te lezen: koptekst komt niet overeen met wat verwacht wordt."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -411,7 +409,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 1") - .Build(Resources.CharacteristicPointsCsvReader_File_invalid_header); + .Build("Het bestand is niet geschikt om karakteristieke punten uit te lezen: koptekst komt niet overeen met wat verwacht wordt."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -435,7 +433,7 @@ string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") .WithSubject("locatie 'Invalid'") - .Build(Resources.Error_CharacteristicPoint_has_not_double); + .Build("Karakteristiek punt heeft een coördinaatwaarde die niet omgezet kan worden naar een getal."); Assert.AreEqual(expectedMessage, exception.Message); Assert.IsInstanceOf(exception.InnerException); } @@ -466,7 +464,7 @@ string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") .WithSubject("locatie 'InvalidNumber'") - .Build(Resources.Error_CharacteristicPoint_parsing_causes_overflow); + .Build("Karakteristiek punt heeft een coördinaatwaarde die te groot of te klein is om ingelezen te worden."); Assert.AreEqual(expectedMessage, exception.Message); Assert.IsInstanceOf(exception.InnerException); } @@ -491,13 +489,13 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") - .Build(Resources.CharacteristicPointsCsvReader_ReadCharacteristicPointsLocation_Line_lacks_ID); + .Build("Regel heeft geen ID."); Assert.AreEqual(expectedMessage, exception.Message); // 2nd line has only whitespace text: expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 3") - .Build(Resources.CharacteristicPointsCsvReader_ReadCharacteristicPointsLocation_Line_lacks_ID); + .Build("Regel heeft geen ID."); exception = Assert.Throws(call); Assert.AreEqual(expectedMessage, exception.Message); } @@ -522,13 +520,13 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") - .Build(Resources.CharacteristicPointsCsvReader_ReadCharacteristicPointsLocation_Line_lacks_ID); + .Build("Regel heeft geen ID."); Assert.AreEqual(expectedMessage, exception.Message); // 2nd line has only whitespace text: expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 4") - .Build(Resources.CharacteristicPointsCsvReader_ReadCharacteristicPointsLocation_Line_lacks_ID); + .Build("Regel heeft geen ID."); exception = Assert.Throws(call); Assert.AreEqual(expectedMessage, exception.Message); } @@ -552,7 +550,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 1") - .Build(string.Format(Resources.CharacteristicPointsCsvReader_ReadCharacteristicPointsLocation_Line_lacks_separator_0_, ';')); + .Build($"Ontbrekend scheidingsteken '{';'}'."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -577,15 +575,15 @@ string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") .WithSubject("locatie 'LacksOneCoordinate'") - .Build(Resources.CharacteristicPointsCsvReader_ReadCharacteristicPointsLocation_Location_lacks_values_for_characteristic_points); + .Build("Het aantal kolommen voor deze locatie komt niet overeen met het aantal kolommen in de koptekst."); Assert.AreEqual(expectedMessage, exception.Message); // 2nd row lacks 2 coordinate values: exception = Assert.Throws(call); expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 3") .WithSubject("locatie 'LacksTwoCoordinates'") - .Build(Resources.CharacteristicPointsCsvReader_ReadCharacteristicPointsLocation_Location_lacks_values_for_characteristic_points); + .Build("Het aantal kolommen voor deze locatie komt niet overeen met het aantal kolommen in de koptekst."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -610,15 +608,15 @@ string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") .WithSubject("locatie 'OneValueTooMuch'") - .Build(Resources.CharacteristicPointsCsvReader_ReadCharacteristicPointsLocation_Location_lacks_values_for_characteristic_points); + .Build("Het aantal kolommen voor deze locatie komt niet overeen met het aantal kolommen in de koptekst."); Assert.AreEqual(expectedMessage, exception.Message); // 2nd row lacks 2 coordinate values: exception = Assert.Throws(call); expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 3") .WithSubject("locatie 'ThreeValuesTooMuch'") - .Build(Resources.CharacteristicPointsCsvReader_ReadCharacteristicPointsLocation_Location_lacks_values_for_characteristic_points); + .Build("Het aantal kolommen voor deze locatie komt niet overeen met het aantal kolommen in de koptekst."); Assert.AreEqual(expectedMessage, exception.Message); } } Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SurfaceLines/PipingSurfaceLinesCsvReaderTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SurfaceLines/PipingSurfaceLinesCsvReaderTest.cs (.../PipingSurfaceLinesCsvReaderTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SurfaceLines/PipingSurfaceLinesCsvReaderTest.cs (.../PipingSurfaceLinesCsvReaderTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -30,8 +30,6 @@ using NUnit.Framework; using Ringtoets.Piping.IO.SurfaceLines; using Ringtoets.Piping.Primitives; -using IOResources = Ringtoets.Piping.IO.Properties.Resources; -using UtilsResources = Core.Common.Utils.Properties.Resources; namespace Ringtoets.Piping.IO.Test.SurfaceLines { @@ -50,7 +48,7 @@ TestDelegate call = () => new PipingSurfaceLinesCsvReader(path); // Assert - string expectedMessage = new FileReaderErrorMessageBuilder(path).Build(UtilsResources.Error_Path_must_be_specified); + string expectedMessage = new FileReaderErrorMessageBuilder(path).Build("Bestandspad mag niet leeg of ongedefinieerd zijn."); TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, expectedMessage); } @@ -81,7 +79,7 @@ // Assert var exception = Assert.Throws(call); - string expectedMessage = new FileReaderErrorMessageBuilder(testDataPath).Build(UtilsResources.Error_Path_must_not_point_to_empty_file_name); + string expectedMessage = new FileReaderErrorMessageBuilder(testDataPath).Build("Bestandspad mag niet verwijzen naar een lege bestandsnaam."); Assert.AreEqual(expectedMessage, exception.Message); } @@ -163,7 +161,7 @@ // Assert var exception = Assert.Throws(call); - string expectedError = new FileReaderErrorMessageBuilder(path).Build(UtilsResources.Error_File_does_not_exist); + string expectedError = new FileReaderErrorMessageBuilder(path).Build("Het bestand bestaat niet."); Assert.AreEqual(expectedError, exception.Message); Assert.IsInstanceOf(exception.InnerException); } @@ -185,7 +183,7 @@ // Assert var exception = Assert.Throws(call); - string expectedMessage = new FileReaderErrorMessageBuilder(path).Build(UtilsResources.Error_Directory_missing); + string expectedMessage = new FileReaderErrorMessageBuilder(path).Build("Het bestandspad verwijst naar een map die niet bestaat."); Assert.AreEqual(expectedMessage, exception.Message); Assert.IsInstanceOf(exception.InnerException); } @@ -207,7 +205,7 @@ // Assert var exception = Assert.Throws(call); - string expectedMessage = new FileReaderErrorMessageBuilder(path).WithLocation("op regel 1").Build(UtilsResources.Error_File_empty); + string expectedMessage = new FileReaderErrorMessageBuilder(path).WithLocation("op regel 1").Build("Het bestand is leeg."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -230,7 +228,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 1") - .Build(IOResources.PipingSurfaceLinesCsvReader_File_invalid_header); + .Build("Het bestand is niet geschikt om profielschematisaties uit te lezen (Verwachte koptekst: locationid;X1;Y1;Z1)."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -443,7 +441,7 @@ // Assert var exception = Assert.Throws(call); - string expectedMessage = new FileReaderErrorMessageBuilder(path).Build(UtilsResources.Error_File_does_not_exist); + string expectedMessage = new FileReaderErrorMessageBuilder(path).Build("Het bestand bestaat niet."); Assert.AreEqual(expectedMessage, exception.Message); Assert.IsInstanceOf(exception.InnerException); } @@ -465,7 +463,7 @@ // Assert var exception = Assert.Throws(call); - string expectedMessage = new FileReaderErrorMessageBuilder(path).Build(UtilsResources.Error_Directory_missing); + string expectedMessage = new FileReaderErrorMessageBuilder(path).Build("Het bestandspad verwijst naar een map die niet bestaat."); Assert.AreEqual(expectedMessage, exception.Message); Assert.IsInstanceOf(exception.InnerException); } @@ -489,7 +487,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 1") - .Build(UtilsResources.Error_File_empty); + .Build("Het bestand is leeg."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -512,7 +510,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 1") - .Build(IOResources.PipingSurfaceLinesCsvReader_File_invalid_header); + .Build("Het bestand is niet geschikt om profielschematisaties uit te lezen (Verwachte koptekst: locationid;X1;Y1;Z1)."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -566,7 +564,7 @@ string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") .WithSubject("profielschematisatie 'InvalidSurfaceLine'") - .Build(IOResources.Error_SurfaceLine_has_not_double); + .Build("Profielschematisatie heeft een coördinaatwaarde die niet omgezet kan worden naar een getal."); Assert.AreEqual(expectedMessage, exception.Message); Assert.IsInstanceOf(exception.InnerException); } @@ -597,7 +595,7 @@ string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") .WithSubject("profielschematisatie 'InvalidSurfaceLine'") - .Build(IOResources.Error_SurfaceLine_parsing_causes_overflow); + .Build("Profielschematisatie heeft een coördinaatwaarde die te groot of te klein is om ingelezen te worden."); Assert.AreEqual(expectedMessage, exception.Message); Assert.IsInstanceOf(exception.InnerException); } @@ -622,13 +620,13 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") - .Build(IOResources.PipingSurfaceLinesCsvReader_ReadLine_Line_lacks_ID); + .Build("Regel heeft geen ID."); Assert.AreEqual(expectedMessage, exception.Message); // 2nd line has only whitespace text: expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 3") - .Build(IOResources.PipingSurfaceLinesCsvReader_ReadLine_Line_lacks_ID); + .Build("Regel heeft geen ID."); exception = Assert.Throws(call); Assert.AreEqual(expectedMessage, exception.Message); } @@ -653,13 +651,13 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") - .Build(IOResources.PipingSurfaceLinesCsvReader_ReadLine_Line_lacks_ID); + .Build("Regel heeft geen ID."); Assert.AreEqual(expectedMessage, exception.Message); // 2nd line has only whitespace text: expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 4") - .Build(IOResources.PipingSurfaceLinesCsvReader_ReadLine_Line_lacks_ID); + .Build("Regel heeft geen ID."); exception = Assert.Throws(call); Assert.AreEqual(expectedMessage, exception.Message); } @@ -683,7 +681,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") - .Build(string.Format(IOResources.PipingSurfaceLinesCsvReader_ReadLine_Line_lacks_separator_0_, ';')); + .Build($"Ontbrekend scheidingsteken '{';'}'."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -706,7 +704,7 @@ var exception = Assert.Throws(call); string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") - .Build(string.Format(IOResources.PipingSurfaceLinesCsvReader_ReadLine_Line_lacks_separator_0_, ';')); + .Build($"Ontbrekend scheidingsteken '{';'}'."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -731,15 +729,15 @@ string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") .WithSubject("profielschematisatie 'LacksOneCoordinate'") - .Build(IOResources.PipingSurfaceLinesCsvReader_ReadLine_SurfaceLine_lacks_values_for_coordinate_triplet); + .Build("Voor de profielschematisatie ontbreken er waardes om een 3D (X,Y,Z) punt aan te maken."); Assert.AreEqual(expectedMessage, exception.Message); // 2nd row lacks 2 coordinate values: exception = Assert.Throws(call); expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 3") .WithSubject("profielschematisatie 'LacksTwoCoordinates'") - .Build(IOResources.PipingSurfaceLinesCsvReader_ReadLine_SurfaceLine_lacks_values_for_coordinate_triplet); + .Build("Voor de profielschematisatie ontbreken er waardes om een 3D (X,Y,Z) punt aan te maken."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -763,7 +761,7 @@ string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") .WithSubject("profielschematisatie 'ArtificialLocal'") - .Build(IOResources.PipingSurfaceLinesCsvReader_ReadLine_SurfaceLine_has_reclining_geometry); + .Build("Profielschematisatie heeft een teruglopende geometrie (punten behoren een oplopende set L-coördinaten te hebben in het lokale coördinatenstelsel)."); Assert.AreEqual(expectedMessage, exception.Message); } } @@ -789,7 +787,7 @@ string expectedMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") .WithSubject("profielschematisatie 'Rotterdam1'") - .Build(IOResources.PipingSurfaceLinesCsvReader_ReadLine_SurfaceLine_has_zero_length); + .Build("Profielschematisatie heeft een geometrie die een lijn met lengte 0 beschrijft."); Assert.AreEqual(expectedMessage, exception.Message); } } Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/FileImporter/PipingSurfaceLinesCsvImporterTest.cs =================================================================== diff -u -ra8d5814e2cb003b85852c499cbc25ca0156887d4 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/FileImporter/PipingSurfaceLinesCsvImporterTest.cs (.../PipingSurfaceLinesCsvImporterTest.cs) (revision a8d5814e2cb003b85852c499cbc25ca0156887d4) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/FileImporter/PipingSurfaceLinesCsvImporterTest.cs (.../PipingSurfaceLinesCsvImporterTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -38,10 +38,6 @@ using Ringtoets.Piping.IO.Importers; using Ringtoets.Piping.Plugin.FileImporter; using Ringtoets.Piping.Primitives; -using PipingIOResources = Ringtoets.Piping.IO.Properties.Resources; -using PipingDataResources = Ringtoets.Piping.Data.Properties.Resources; -using PipingPluginResources = Ringtoets.Piping.Plugin.Properties.Resources; -using UtilsResources = Core.Common.Utils.Properties.Resources; namespace Ringtoets.Piping.Plugin.Test.FileImporter { @@ -214,7 +210,7 @@ if (callCount <= expectedNumberOfSurfaceLines) { - Assert.AreEqual(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_Read_PipingSurfaceLines_0_, twovalidsurfacelinesCsv), currentStepName); + Assert.AreEqual($"Inlezen '{twovalidsurfacelinesCsv}'", currentStepName); } else if (callCount <= expectedNumberOfSurfaceLines + 1 + expectedNumberOfSurfaceLines) { @@ -293,13 +289,10 @@ // Assert var mesages = new[] { - string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - validFilePath), + $"Begonnen met het inlezen van profielschematisaties uit bestand '{validFilePath}'.", "Profielschematisatie Rotterdam1 bevat aaneengesloten dubbele geometriepunten. Deze dubbele punten worden genegeerd.", - string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - validFilePath), - string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_Import_No_characteristic_points_file_for_surface_line_file_expecting_file_0_, - Path.Combine(ioTestDataPath, "ValidSurfaceLine_HasConsecutiveDuplicatePoints.krp.csv")) + $"Klaar met het inlezen van profielschematisaties uit bestand '{validFilePath}'.", + $"Geen karakteristieke punten-bestand gevonden naast het profielschematisatiesbestand. (Verwacht bestand: {Path.Combine(ioTestDataPath, "ValidSurfaceLine_HasConsecutiveDuplicatePoints.krp.csv")})" }; TestHelper.AssertLogMessagesAreGenerated(call, mesages, 4); @@ -557,8 +550,7 @@ // Assert string internalErrorMessage = new FileReaderErrorMessageBuilder(corruptPath) .Build("Er zitten ongeldige tekens in het bestandspad. Alle tekens in het bestandspad moeten geldig zijn."); - string expectedLogMessage = string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_CriticalErrorMessage_0_File_Skipped, - internalErrorMessage); + string expectedLogMessage = $"{internalErrorMessage} \r\nHet bestand wordt overgeslagen."; Tuple expectedLogMessageAndLevel = Tuple.Create(expectedLogMessage, LogLevelConstant.Error); TestHelper.AssertLogMessageWithLevelIsGenerated(call, expectedLogMessageAndLevel, 1); AssertUnsuccessfulImport(importResult, surfaceLineUpdateStrategy); @@ -584,15 +576,12 @@ Action call = () => importResult = importer.Import(); // Assert - string internalErrorMessage = new FileReaderErrorMessageBuilder(corruptPath).Build(UtilsResources.Error_File_does_not_exist); + string internalErrorMessage = new FileReaderErrorMessageBuilder(corruptPath).Build("Het bestand bestaat niet."); var expectedLogMessagesAndLevels = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_CriticalErrorMessage_0_File_Skipped, - internalErrorMessage), LogLevelConstant.Error), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - corruptPath), LogLevelConstant.Info) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"{internalErrorMessage} \r\nHet bestand wordt overgeslagen.", LogLevelConstant.Error), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevels, 3); AssertUnsuccessfulImport(importResult, surfaceLineUpdateStrategy); @@ -619,15 +608,12 @@ // Assert string internalErrorMessage = new FileReaderErrorMessageBuilder(corruptPath) .WithLocation("op regel 1") - .Build(UtilsResources.Error_File_empty); + .Build("Het bestand is leeg."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_CriticalErrorMessage_0_File_Skipped, - internalErrorMessage), LogLevelConstant.Error) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"{internalErrorMessage} \r\nHet bestand wordt overgeslagen.", LogLevelConstant.Error) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 3); AssertUnsuccessfulImport(importResult, surfaceLineUpdateStrategy); @@ -654,15 +640,12 @@ // Assert string internalErrorMessage = new FileReaderErrorMessageBuilder(corruptPath) .WithLocation("op regel 1") - .Build(PipingIOResources.PipingSurfaceLinesCsvReader_File_invalid_header); + .Build("Het bestand is niet geschikt om profielschematisaties uit te lezen (Verwachte koptekst: locationid;X1;Y1;Z1)."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_CriticalErrorMessage_0_File_Skipped, - internalErrorMessage), LogLevelConstant.Error), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - corruptPath), LogLevelConstant.Info) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"{internalErrorMessage} \r\nHet bestand wordt overgeslagen.", LogLevelConstant.Error), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 3); AssertUnsuccessfulImport(importResult, surfaceLineUpdateStrategy); @@ -696,15 +679,12 @@ Action call = () => importResult = importer.Import(); // Assert - string internalErrorMessage = new FileReaderErrorMessageBuilder(copyTargetPath).Build(UtilsResources.Error_File_does_not_exist); + string internalErrorMessage = new FileReaderErrorMessageBuilder(copyTargetPath).Build("Het bestand bestaat niet."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - copyTargetPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - copyTargetPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_CriticalErrorMessage_0_File_Skipped, - internalErrorMessage), LogLevelConstant.Error) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{copyTargetPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{copyTargetPath}'.", LogLevelConstant.Info), + Tuple.Create($"{internalErrorMessage} \r\nHet bestand wordt overgeslagen.", LogLevelConstant.Error) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 3); AssertUnsuccessfulImport(importResult, surfaceLineUpdateStrategy); @@ -747,17 +727,13 @@ Action call = () => importResult = importer.Import(); // Assert - string duplicateDefinitionMessage = string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_AddImportedDataToModel_Duplicate_definitions_for_same_location_0_, - "Rotterdam1"); + string duplicateDefinitionMessage = "Meerdere definities gevonden voor profielschematisatie 'Rotterdam1'. Alleen de eerste definitie wordt geïmporteerd."; var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - corruptPath), LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), Tuple.Create(duplicateDefinitionMessage, LogLevelConstant.Warn), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_Import_No_characteristic_points_file_for_surface_line_file_expecting_file_0_, - expectedCharacteristicPointsFile), LogLevelConstant.Info) + Tuple.Create($"Geen karakteristieke punten-bestand gevonden naast het profielschematisatiesbestand. (Verwacht bestand: {expectedCharacteristicPointsFile})", LogLevelConstant.Info) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 4); @@ -801,18 +777,14 @@ string internalErrorMessage = new FileReaderErrorMessageBuilder(corruptPath) .WithLocation("op regel 3") .WithSubject("profielschematisatie 'InvalidRow'") - .Build(PipingIOResources.Error_SurfaceLine_has_not_double); + .Build("Profielschematisatie heeft een coördinaatwaarde die niet omgezet kan worden naar een getal."); string characteristicPointsFilePath = Path.Combine(ioTestDataPath, "TwoValidAndOneInvalidNumberRowSurfaceLines.krp.csv"); var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadPipingSurfaceLines_ParseErrorMessage_0_SurfaceLine_skipped, - internalErrorMessage), LogLevelConstant.Error), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_Import_No_characteristic_points_file_for_surface_line_file_expecting_file_0_, - characteristicPointsFilePath), LogLevelConstant.Info) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"{internalErrorMessage} \r\nDeze profielschematisatie wordt overgeslagen.", LogLevelConstant.Error), + Tuple.Create($"Geen karakteristieke punten-bestand gevonden naast het profielschematisatiesbestand. (Verwacht bestand: {characteristicPointsFilePath})", LogLevelConstant.Info) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 4); @@ -861,17 +833,13 @@ string internalErrorMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") .WithSubject("profielschematisatie 'Rotterdam1'") - .Build(PipingIOResources.PipingSurfaceLinesCsvReader_ReadLine_SurfaceLine_has_reclining_geometry); + .Build("Profielschematisatie heeft een teruglopende geometrie (punten behoren een oplopende set L-coördinaten te hebben in het lokale coördinatenstelsel)."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - path), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - path), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadPipingSurfaceLines_ParseErrorMessage_0_SurfaceLine_skipped, - internalErrorMessage), LogLevelConstant.Error), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_Import_No_characteristic_points_file_for_surface_line_file_expecting_file_0_, - Path.Combine(ioTestDataPath, "InvalidRow_DuplicatePointsCausingRecline.krp.csv")), LogLevelConstant.Info) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{path}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{path}'.", LogLevelConstant.Info), + Tuple.Create($"{internalErrorMessage} \r\nDeze profielschematisatie wordt overgeslagen.", LogLevelConstant.Error), + Tuple.Create($"Geen karakteristieke punten-bestand gevonden naast het profielschematisatiesbestand. (Verwacht bestand: {Path.Combine(ioTestDataPath, "InvalidRow_DuplicatePointsCausingRecline.krp.csv")})", LogLevelConstant.Info) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 4); AssertSuccessfulImport(importResult, 0, path, surfaceLineUpdateStrategy); @@ -906,17 +874,13 @@ string internalErrorMessage = new FileReaderErrorMessageBuilder(path) .WithLocation("op regel 2") .WithSubject("profielschematisatie 'Rotterdam1'") - .Build(PipingIOResources.PipingSurfaceLinesCsvReader_ReadLine_SurfaceLine_has_zero_length); + .Build("Profielschematisatie heeft een geometrie die een lijn met lengte 0 beschrijft."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - path), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - path), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadPipingSurfaceLines_ParseErrorMessage_0_SurfaceLine_skipped, - internalErrorMessage), LogLevelConstant.Error), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_Import_No_characteristic_points_file_for_surface_line_file_expecting_file_0_, - Path.Combine(ioTestDataPath, "InvalidRow_DuplicatePointsCausingZeroLength.krp.csv")), LogLevelConstant.Info) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{path}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{path}'.", LogLevelConstant.Info), + Tuple.Create($"{internalErrorMessage} \r\nDeze profielschematisatie wordt overgeslagen.", LogLevelConstant.Error), + Tuple.Create($"Geen karakteristieke punten-bestand gevonden naast het profielschematisatiesbestand. (Verwacht bestand: {Path.Combine(ioTestDataPath, "InvalidRow_DuplicatePointsCausingZeroLength.krp.csv")})", LogLevelConstant.Info) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 4); AssertSuccessfulImport(importResult, 0, path, surfaceLineUpdateStrategy); @@ -959,8 +923,7 @@ Action call = () => importResult = importer.Import(); // Assert - string expectedLogMessage = string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_Import_No_characteristic_points_file_for_surface_line_file_expecting_file_0_, - nonExistingCharacteristicFile); + string expectedLogMessage = $"Geen karakteristieke punten-bestand gevonden naast het profielschematisatiesbestand. (Verwacht bestand: {nonExistingCharacteristicFile})"; Tuple expectedLogMessageAndLevel = Tuple.Create(expectedLogMessage, LogLevelConstant.Info); TestHelper.AssertLogMessageWithLevelIsGenerated(call, expectedLogMessageAndLevel, 3); @@ -991,20 +954,15 @@ // Assert string internalErrorMessage = new FileReaderErrorMessageBuilder(corruptPath) .WithLocation("op regel 1") - .Build(UtilsResources.Error_File_empty); + .Build("Het bestand is leeg."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - surfaceLinesFile), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - surfaceLinesFile), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Start_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Finished_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_CriticalErrorMessage_0_File_Skipped, - internalErrorMessage), LogLevelConstant.Error) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{surfaceLinesFile}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{surfaceLinesFile}'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"{internalErrorMessage} \r\nHet bestand wordt overgeslagen.", LogLevelConstant.Error) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 5); AssertUnsuccessfulImport(importResult, surfaceLineUpdateStrategy); @@ -1034,20 +992,15 @@ // Assert string internalErrorMessage = new FileReaderErrorMessageBuilder(corruptPath) .WithLocation("op regel 1") - .Build(PipingIOResources.CharacteristicPointsCsvReader_File_invalid_header); + .Build("Het bestand is niet geschikt om karakteristieke punten uit te lezen: koptekst komt niet overeen met wat verwacht wordt."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - surfaceLinesFile), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - surfaceLinesFile), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Start_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Finished_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_CriticalErrorMessage_0_File_Skipped, - internalErrorMessage), LogLevelConstant.Error) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{surfaceLinesFile}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{surfaceLinesFile}'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"{internalErrorMessage} \r\nHet bestand wordt overgeslagen.", LogLevelConstant.Error) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 5); @@ -1082,8 +1035,7 @@ importer.SetProgressChanged((name, step, steps) => { // Delete the file being read by the import during the import itself: - if (name == string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_Read_PipingCharacteristicPoints_0_, - copyCharacteristicPointsTargetFileName)) + if (name == $"Inlezen '{copyCharacteristicPointsTargetFileName}'") { File.Delete(copyCharacteristicPointsTargetPath); } @@ -1095,19 +1047,14 @@ Action call = () => importResult = importer.Import(); // Assert - string internalErrorMessage = new FileReaderErrorMessageBuilder(copyCharacteristicPointsTargetPath).Build(UtilsResources.Error_File_does_not_exist); + string internalErrorMessage = new FileReaderErrorMessageBuilder(copyCharacteristicPointsTargetPath).Build("Het bestand bestaat niet."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - copyTargetPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - copyTargetPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Start_reading_characteristic_points_from_File_0_, - copyCharacteristicPointsTargetPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Finished_reading_characteristic_points_from_File_0_, - copyCharacteristicPointsTargetPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_CriticalErrorMessage_0_File_Skipped, - internalErrorMessage), LogLevelConstant.Error) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{copyTargetPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{copyTargetPath}'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van karakteristieke punten uit bestand '{copyCharacteristicPointsTargetPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van karakteristieke punten uit bestand '{copyCharacteristicPointsTargetPath}'.", LogLevelConstant.Info), + Tuple.Create($"{internalErrorMessage} \r\nHet bestand wordt overgeslagen.", LogLevelConstant.Error) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 5); AssertUnsuccessfulImport(importResult, surfaceLineUpdateStrategy); @@ -1157,18 +1104,13 @@ Action call = () => importResult = importer.Import(); // Assert - string duplicateDefinitionMessage = string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_AddImportedDataToModel_Duplicate_definitions_for_same_characteristic_point_location_0_, - "Rotterdam1"); + const string duplicateDefinitionMessage = "Meerdere karakteristieke punten definities gevonden voor locatie 'Rotterdam1'. Alleen de eerste definitie wordt geïmporteerd."; var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - surfaceLinesFile), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - surfaceLinesFile), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Start_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Finished_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{surfaceLinesFile}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{surfaceLinesFile}'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), Tuple.Create(duplicateDefinitionMessage, LogLevelConstant.Warn) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 5); @@ -1215,21 +1157,15 @@ string internalErrorMessage = new FileReaderErrorMessageBuilder(corruptPath) .WithLocation("op regel 2") .WithSubject("locatie 'Rotterdam1Invalid'") - .Build(PipingIOResources.Error_CharacteristicPoint_has_not_double); + .Build("Karakteristiek punt heeft een coördinaatwaarde die niet omgezet kan worden naar een getal."); var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - surfaceLinesFile), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - surfaceLinesFile), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Start_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_ParseErrorMessage_0_CharacteristicPoints_skipped, - internalErrorMessage), LogLevelConstant.Error), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_AddImportedDataToModel_No_characteristic_points_for_SurfaceLine_0_, - "Rotterdam1Invalid"), LogLevelConstant.Warn), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Finished_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{surfaceLinesFile}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{surfaceLinesFile}'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"{internalErrorMessage} \r\nDeze locatie met karakteristieke punten wordt overgeslagen.", LogLevelConstant.Error), + Tuple.Create("Er konden geen karakteristieke punten gevonden worden voor locatie 'Rotterdam1Invalid'.", LogLevelConstant.Warn), + Tuple.Create($"Klaar met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 6); @@ -1287,16 +1223,11 @@ // Assert var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - surfaceLinesPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - surfaceLinesPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Start_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Finished_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_AddImportedDataToModel_No_characteristic_points_for_SurfaceLine_0_, - "Rotterdam1"), LogLevelConstant.Warn) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{surfaceLinesPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{surfaceLinesPath}'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Er konden geen karakteristieke punten gevonden worden voor locatie 'Rotterdam1'.", LogLevelConstant.Warn) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 5); @@ -1354,16 +1285,11 @@ // Assert var expectedLogMessagesAndLevel = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - surfaceLinesPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - surfaceLinesPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Start_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Finished_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_AddImportedDataToModel_Characteristic_points_found_for_unknown_SurfaceLine_0_, - "Extra"), LogLevelConstant.Warn) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{surfaceLinesPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{surfaceLinesPath}'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Karakteristieke punten gevonden zonder bijbehorende profielschematisatie voor locatie 'Extra'.", LogLevelConstant.Warn) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessagesAndLevel, 5); @@ -1424,22 +1350,14 @@ Action call = () => importResult = importer.Import(); // Assert - string pointFormat = string.Format(PipingDataResources.RingtoetsPipingSurfaceLine_SetCharacteristicPointAt_Geometry_does_not_contain_point_at_0_to_assign_as_characteristic_point_1_, - new Point3D(0, 1, 2), - characteristicPointName); + string pointFormat = $"De geometrie bevat geen punt op locatie {new Point3D(0, 1, 2)} om als '{characteristicPointName}' in te stellen."; var expectedLogMessages = new[] { - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Start_reading_surface_lines_from_File_0_, - surfaceLinesPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadSurfaceLines_Finished_reading_surface_lines_from_File_0_, - surfaceLinesPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Start_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_ReadCharacteristicPoints_Finished_reading_characteristic_points_from_File_0_, - corruptPath), LogLevelConstant.Info), - Tuple.Create(string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_CharacteristicPoint_of_SurfaceLine_0_skipped_cause_1_, - "Rotterdam1Invalid", - pointFormat), LogLevelConstant.Error) + Tuple.Create($"Begonnen met het inlezen van profielschematisaties uit bestand '{surfaceLinesPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van profielschematisaties uit bestand '{surfaceLinesPath}'.", LogLevelConstant.Info), + Tuple.Create($"Begonnen met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Klaar met het inlezen van karakteristieke punten uit bestand '{corruptPath}'.", LogLevelConstant.Info), + Tuple.Create($"Karakteristiek punt van profielschematisatie 'Rotterdam1Invalid' is overgeslagen. {pointFormat}", LogLevelConstant.Error) }; TestHelper.AssertLogMessagesWithLevelAreGenerated(call, expectedLogMessages); @@ -1709,8 +1627,7 @@ Action call = () => importResult = importer.Import(); // Assert - string message = string.Format(PipingPluginResources.PipingSurfaceLinesCsvImporter_CheckCharacteristicPoints_EntryPointL_greater_or_equal_to_ExitPointL_for_0_, - "ArtifcialLocal"); + const string message = "Het uittredepunt moet landwaarts van het intredepunt liggen voor locatie ArtifcialLocal."; Tuple expectedLogMessageAndLevel = Tuple.Create(message, LogLevelConstant.Warn); TestHelper.AssertLogMessageWithLevelIsGenerated(call, expectedLogMessageAndLevel); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/FileImporter/RingtoetsPipingSurfaceLineExtensionsTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/FileImporter/RingtoetsPipingSurfaceLineExtensionsTest.cs (.../RingtoetsPipingSurfaceLineExtensionsTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/FileImporter/RingtoetsPipingSurfaceLineExtensionsTest.cs (.../RingtoetsPipingSurfaceLineExtensionsTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -62,8 +62,7 @@ Action test = () => result = surfaceLine.TrySetDitchPolderSide(testPoint); // Assert - string message = string.Format("Karakteristiek punt van profielschematisatie 'testName' is overgeslagen. De geometrie bevat geen punt op locatie {0} om als '{1}' in te stellen.", - testPoint, Resources.CharacteristicPoint_DitchPolderSide); + string message = $"Karakteristiek punt van profielschematisatie 'testName' is overgeslagen. De geometrie bevat geen punt op locatie {testPoint} om als 'Insteek sloot polderzijde' in te stellen."; TestHelper.AssertLogMessageIsGenerated(test, message, 1); Assert.IsFalse(result); } @@ -123,8 +122,7 @@ Action test = () => result = surfaceLine.TrySetBottomDitchDikeSide(testPoint); // Assert - string message = string.Format("Karakteristiek punt van profielschematisatie 'testName' is overgeslagen. De geometrie bevat geen punt op locatie {0} om als '{1}' in te stellen.", - testPoint, Resources.CharacteristicPoint_BottomDitchDikeSide); + string message = $"Karakteristiek punt van profielschematisatie 'testName' is overgeslagen. De geometrie bevat geen punt op locatie {testPoint} om als 'Slootbodem dijkzijde' in te stellen."; TestHelper.AssertLogMessageIsGenerated(test, message, 1); Assert.IsFalse(result); } @@ -184,8 +182,7 @@ Action test = () => result = surfaceLine.TrySetBottomDitchPolderSide(testPoint); // Assert - string message = string.Format("Karakteristiek punt van profielschematisatie 'testName' is overgeslagen. De geometrie bevat geen punt op locatie {0} om als '{1}' in te stellen.", - testPoint, Resources.CharacteristicPoint_BottomDitchPolderSide); + string message = $"Karakteristiek punt van profielschematisatie 'testName' is overgeslagen. De geometrie bevat geen punt op locatie {testPoint} om als 'Slootbodem polderzijde' in te stellen."; TestHelper.AssertLogMessageIsGenerated(test, message, 1); Assert.IsFalse(result); } @@ -245,8 +242,7 @@ Action test = () => result = surfaceLine.TrySetDitchDikeSide(testPoint); // Assert - string message = string.Format("Karakteristiek punt van profielschematisatie 'testName' is overgeslagen. De geometrie bevat geen punt op locatie {0} om als '{1}' in te stellen.", - testPoint, Resources.CharacteristicPoint_DitchDikeSide); + string message = $"Karakteristiek punt van profielschematisatie 'testName' is overgeslagen. De geometrie bevat geen punt op locatie {testPoint} om als 'Insteek sloot dijkzijde' in te stellen."; TestHelper.AssertLogMessageIsGenerated(test, message, 1); Assert.IsFalse(result); } @@ -306,8 +302,7 @@ Action test = () => result = surfaceLine.TrySetDikeToeAtPolder(testPoint); // Assert - string message = string.Format("Karakteristiek punt van profielschematisatie 'testName' is overgeslagen. De geometrie bevat geen punt op locatie {0} om als '{1}' in te stellen.", - testPoint, Resources.CharacteristicPoint_DikeToeAtPolder); + string message = $"Karakteristiek punt van profielschematisatie 'testName' is overgeslagen. De geometrie bevat geen punt op locatie {testPoint} om als 'Teen dijk binnenwaarts' in te stellen."; TestHelper.AssertLogMessageIsGenerated(test, message, 1); Assert.IsFalse(result); } @@ -367,8 +362,7 @@ Action test = () => result = surfaceLine.TrySetDikeToeAtRiver(testPoint); // Assert - string message = string.Format("Karakteristiek punt van profielschematisatie 'testName' is overgeslagen. De geometrie bevat geen punt op locatie {0} om als '{1}' in te stellen.", - testPoint, Resources.CharacteristicPoint_DikeToeAtRiver); + string message = $"Karakteristiek punt van profielschematisatie 'testName' is overgeslagen. De geometrie bevat geen punt op locatie {testPoint} om als 'Teen dijk buitenwaarts' in te stellen."; TestHelper.AssertLogMessageIsGenerated(test, message, 1); Assert.IsFalse(result); } Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/EmptyPipingOutputTreeNodeInfoTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/EmptyPipingOutputTreeNodeInfoTest.cs (.../EmptyPipingOutputTreeNodeInfoTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/EmptyPipingOutputTreeNodeInfoTest.cs (.../EmptyPipingOutputTreeNodeInfoTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -91,7 +91,7 @@ string text = info.Text(null); // Assert - Assert.AreEqual(RingtoetsCommonFormsResources.CalculationOutput_DisplayName, text); + Assert.AreEqual("Resultaat", text); } [Test] Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs =================================================================== diff -u -r8dc7980c928c8e808007aa66dacaa01ee6fe47fb -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs (.../PipingCalculationScenarioContextTreeNodeInfoTest.cs) (revision 8dc7980c928c8e808007aa66dacaa01ee6fe47fb) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs (.../PipingCalculationScenarioContextTreeNodeInfoTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -212,8 +212,8 @@ // Assert TestHelper.AssertContextMenuStripContainsItem(contextMenu, contextMenuClearIndex, - RingtoetsCommonFormsResources.Clear_output, - RingtoetsCommonFormsResources.ClearOutput_No_output_to_clear, + "&Wis uitvoer...", + "Deze berekening heeft geen uitvoer om te wissen.", RingtoetsCommonFormsResources.ClearIcon, false); } @@ -251,8 +251,8 @@ // Assert TestHelper.AssertContextMenuStripContainsItem(contextMenu, contextMenuClearIndex, - RingtoetsCommonFormsResources.Clear_output, - RingtoetsCommonFormsResources.Clear_output_ToolTip, + "&Wis uitvoer...", + "Wis de uitvoer van deze berekening.", RingtoetsCommonFormsResources.ClearIcon); } } Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingInputContextTreeNodeInfoTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingInputContextTreeNodeInfoTest.cs (.../PipingInputContextTreeNodeInfoTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingInputContextTreeNodeInfoTest.cs (.../PipingInputContextTreeNodeInfoTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -32,7 +32,6 @@ using Ringtoets.Piping.Forms.PresentationObjects; using Ringtoets.Piping.Forms.Properties; using Ringtoets.Piping.Primitives; -using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; namespace Ringtoets.Piping.Plugin.Test.TreeNodeInfos { @@ -103,7 +102,7 @@ string text = info.Text(pipingInputContext); // Assert - Assert.AreEqual(RingtoetsCommonFormsResources.Calculation_Input, text); + Assert.AreEqual("Invoer", text); } [Test] Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingOutputContextTreeNodeInfoTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingOutputContextTreeNodeInfoTest.cs (.../PipingOutputContextTreeNodeInfoTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingOutputContextTreeNodeInfoTest.cs (.../PipingOutputContextTreeNodeInfoTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -14,7 +14,7 @@ // // You should have received a copy of the GNU General Public License // along with this program. If not, see . -// +// // All names, logos, and references to "Deltares" are registered trademarks of // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. @@ -88,7 +88,7 @@ string text = info.Text(null); // Assert - Assert.AreEqual(RingtoetsCommonFormsResources.CalculationOutput_DisplayName, text); + Assert.AreEqual("Resultaat", text); } [Test] Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingScenariosViewInfoTest.cs =================================================================== diff -u -r81fa8a9bf3bd503cbd280e88b8f6037a840cff12 -r616d3ed2e3262894d16948262fa1b223d2bc806e --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingScenariosViewInfoTest.cs (.../PipingScenariosViewInfoTest.cs) (revision 81fa8a9bf3bd503cbd280e88b8f6037a840cff12) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingScenariosViewInfoTest.cs (.../PipingScenariosViewInfoTest.cs) (revision 616d3ed2e3262894d16948262fa1b223d2bc806e) @@ -94,7 +94,7 @@ string viewName = info.GetViewName(view, pipingCalculationsGroup); // Assert - Assert.AreEqual(RingtoetsCommonFormsResources.Scenarios_DisplayName, viewName); + Assert.AreEqual("Scenario's", viewName); } }