Index: Riskeer/Common/test/Riskeer.Common.IO.Test/HydraRing/HydraulicBoundaryDataHelperTest.cs =================================================================== diff -u -r0319d52a20613293f9812bb65359e40e69df51e0 -rafbbaef47113e83aad60d8dd3f4ffcededc6b7c3 --- Riskeer/Common/test/Riskeer.Common.IO.Test/HydraRing/HydraulicBoundaryDataHelperTest.cs (.../HydraulicBoundaryDataHelperTest.cs) (revision 0319d52a20613293f9812bb65359e40e69df51e0) +++ Riskeer/Common/test/Riskeer.Common.IO.Test/HydraRing/HydraulicBoundaryDataHelperTest.cs (.../HydraulicBoundaryDataHelperTest.cs) (revision afbbaef47113e83aad60d8dd3f4ffcededc6b7c3) @@ -69,7 +69,7 @@ public void ValidateFilesForCalculation_HrdFileWithInvalidPathChars_ReturnsMessageWithError() { // Setup - string hrdFilePath = validHrdFilePath.Replace('c', Path.GetInvalidPathChars()[0]); + string hrdFilePath = testDataPath + Path.DirectorySeparatorChar + Path.GetInvalidPathChars()[0] + ".sqlite"; // Call string result = HydraulicBoundaryDataHelper.ValidateFilesForCalculation(validHlcdFilePath, hrdFilePath, false); @@ -164,7 +164,7 @@ public void IsCorrectVersion_HrdFileWithInvalidPathChars_ThrowsCriticalFileReadException() { // Setup - string hrdFilePath = validHrdFilePath.Replace('c', Path.GetInvalidPathChars()[0]); + string hrdFilePath = testDataPath + Path.DirectorySeparatorChar + Path.GetInvalidPathChars()[0] + ".sqlite"; // Call void Test() => HydraulicBoundaryDataHelper.IsCorrectVersion(string.Empty, hrdFilePath); @@ -197,7 +197,7 @@ public void IsCorrectHrdFile_HlcdFileWithInvalidPathChars_ThrowsCriticalFileReadException() { // Setup - string hlcdFilePath = validHlcdFilePath.Replace('h', Path.GetInvalidPathChars()[0]); + string hlcdFilePath = testDataPath + Path.DirectorySeparatorChar + Path.GetInvalidPathChars()[0] + ".sqlite"; // Call void Test() => HydraulicBoundaryDataHelper.IsCorrectHrdFile(hlcdFilePath, validHrdFilePath); @@ -210,7 +210,7 @@ public void IsCorrectHrdFile_HrdFileWithInvalidPathChars_ThrowsCriticalFileReadException() { // Setup - string hrdFilePath = validHrdFilePath.Replace('c', Path.GetInvalidPathChars()[0]); + string hrdFilePath = testDataPath + Path.DirectorySeparatorChar + Path.GetInvalidPathChars()[0] + ".sqlite"; // Call void Test() => HydraulicBoundaryDataHelper.IsCorrectHrdFile(validHlcdFilePath, hrdFilePath);