Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/ReferenceLines/ReferenceLineReaderTest.cs =================================================================== diff -u -r2aa9661130f20e88c41dac921ffb780573dcf799 -r808d8de82712c31f26cf21ea82f849d7bb728caa --- Ringtoets/Common/test/Ringtoets.Common.IO.Test/ReferenceLines/ReferenceLineReaderTest.cs (.../ReferenceLineReaderTest.cs) (revision 2aa9661130f20e88c41dac921ffb780573dcf799) +++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/ReferenceLines/ReferenceLineReaderTest.cs (.../ReferenceLineReaderTest.cs) (revision 808d8de82712c31f26cf21ea82f849d7bb728caa) @@ -76,11 +76,11 @@ public void ReadReferenceLine_FilePathHasInvalidPathCharacter_ThrowArgumentException() { // Setup - char[] invalidFileNameChars = Path.GetInvalidFileNameChars(); + char[] invalidPathChars = Path.GetInvalidPathChars(); string validFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.Common.IO, "traject_10-1.shp"); - string invalidFilePath = validFilePath.Replace("_", invalidFileNameChars[3].ToString()); + string invalidFilePath = validFilePath.Replace("_", invalidPathChars[3].ToString()); var reader = new ReferenceLineReader(); @@ -89,7 +89,7 @@ // Assert var expectedMessage = string.Format("Fout bij het lezen van bestand '{0}': bestandspad mag niet de volgende tekens bevatten: {1}", - invalidFilePath, string.Join(", ", invalidFileNameChars)); + invalidFilePath, string.Join(", ", invalidPathChars)); TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, expectedMessage); }