Index: DamEngine/trunk/src/Deltares.DamEngine.TestHelpers/XmlAdapter.cs =================================================================== diff -u -r6196 -r6404 --- DamEngine/trunk/src/Deltares.DamEngine.TestHelpers/XmlAdapter.cs (.../XmlAdapter.cs) (revision 6196) +++ DamEngine/trunk/src/Deltares.DamEngine.TestHelpers/XmlAdapter.cs (.../XmlAdapter.cs) (revision 6404) @@ -1,4 +1,4 @@ -// Copyright (C) Stichting Deltares 2024. All rights reserved. +// Copyright (C) Stichting Deltares 2025. All rights reserved. // // This file is part of the Dam Engine. // @@ -45,7 +45,7 @@ string result = Regex.Replace(input, searchString, replacement, RegexOptions.IgnorePatternWhitespace); return result; } - + /// /// Selects locations from an XML based on the location names by removing the other locations. /// @@ -54,7 +54,6 @@ /// The modified input public static string SelectLocations(string input, string[] locationNames) { - string result = input; const string searchString = @""; MatchCollection locationBlocks = Regex.Matches(result, searchString, RegexOptions.Singleline); @@ -66,6 +65,7 @@ result = result.Remove(locationBlocks[i].Index, locationBlocks[i].Length); } } + return result; } @@ -88,7 +88,7 @@ string result = Regex.Replace(input, pattern, replacement); return result; } - + /// /// Changes the piping input model. /// @@ -120,5 +120,4 @@ string result = Regex.Replace(input, pattern, replacement); return result; } - } \ No newline at end of file