Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/DikeProfiles/DikeProfileDataReaderTest.cs =================================================================== diff -u -r0765637cd19a665cdd0ce28add4fc06499adc6b3 -r808d8de82712c31f26cf21ea82f849d7bb728caa --- Ringtoets/Common/test/Ringtoets.Common.IO.Test/DikeProfiles/DikeProfileDataReaderTest.cs (.../DikeProfileDataReaderTest.cs) (revision 0765637cd19a665cdd0ce28add4fc06499adc6b3) +++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/DikeProfiles/DikeProfileDataReaderTest.cs (.../DikeProfileDataReaderTest.cs) (revision 808d8de82712c31f26cf21ea82f849d7bb728caa) @@ -79,11 +79,11 @@ public void ReadReferenceLine_FilePathHasInvalidPathCharacter_ThrowArgumentException() { // Setup - char[] invalidFileNameChars = Path.GetInvalidFileNameChars(); + char[] invalidPathChars = Path.GetInvalidPathChars(); string validFilePath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.Common.IO, Path.Combine("DikeProfiles", "profiel001 - Ringtoets.prfl")); - string invalidFilePath = validFilePath.Replace("-", invalidFileNameChars[3].ToString()); + string invalidFilePath = validFilePath.Replace("-", invalidPathChars[3].ToString()); var reader = new DikeProfileDataReader(new string[0]); @@ -92,7 +92,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); }