From de6f41e37f02966addd0668dcde9fe034cc0a61c Mon Sep 17 00:00:00 2001 From: Erhan Atesoglu <47518605+eanova@users.noreply.github.com> Date: Mon, 6 Jan 2020 10:34:08 -0800 Subject: [PATCH] CoreFX Renames in System.IO PathInternal.Tests (#1017) --- .../tests/Tests/System/IO/PathInternal.Tests.cs | 322 ++++++++++----------- .../Tests/System/IO/PathInternal.Windows.Tests.cs | 12 +- 2 files changed, 167 insertions(+), 167 deletions(-) diff --git a/src/libraries/Common/tests/Tests/System/IO/PathInternal.Tests.cs b/src/libraries/Common/tests/Tests/System/IO/PathInternal.Tests.cs index 3f33936..7bfa141 100644 --- a/src/libraries/Common/tests/Tests/System/IO/PathInternal.Tests.cs +++ b/src/libraries/Common/tests/Tests/System/IO/PathInternal.Tests.cs @@ -67,19 +67,19 @@ namespace Tests.System.IO public static TheoryData RemoveRelativeSegmentsData => new TheoryData { - { @"C:\git\corefx", 2, @"C:\git\corefx"}, - { @"C:\\git\corefx", 2, @"C:\git\corefx"}, - { @"C:\git\\corefx", 2, @"C:\git\corefx"}, - { @"C:\git\.\corefx\.\\", 2, @"C:\git\corefx\"}, - { @"C:\git\corefx", 2, @"C:\git\corefx"}, - { @"C:\git\..\corefx", 2, @"C:\corefx"}, - { @"C:\git\corefx\..\", 2, @"C:\git\"}, - { @"C:\git\corefx\..\..\..\", 2, @"C:\"}, - { @"C:\git\corefx\..\..\.\", 2, @"C:\"}, - { @"C:\git\..\.\corefx\temp\..", 2, @"C:\corefx"}, - { @"C:\git\..\\\.\..\corefx", 2, @"C:\corefx"}, - { @"C:\git\corefx\", 2, @"C:\git\corefx\"}, - { @"C:\git\temp\..\corefx\", 2, @"C:\git\corefx\"}, + { @"C:\git\runtime", 2, @"C:\git\runtime"}, + { @"C:\\git\runtime", 2, @"C:\git\runtime"}, + { @"C:\git\\runtime", 2, @"C:\git\runtime"}, + { @"C:\git\.\runtime\.\\", 2, @"C:\git\runtime\"}, + { @"C:\git\runtime", 2, @"C:\git\runtime"}, + { @"C:\git\..\runtime", 2, @"C:\runtime"}, + { @"C:\git\runtime\..\", 2, @"C:\git\"}, + { @"C:\git\runtime\..\..\..\", 2, @"C:\"}, + { @"C:\git\runtime\..\..\.\", 2, @"C:\"}, + { @"C:\git\..\.\runtime\temp\..", 2, @"C:\runtime"}, + { @"C:\git\..\\\.\..\runtime", 2, @"C:\runtime"}, + { @"C:\git\runtime\", 2, @"C:\git\runtime\"}, + { @"C:\git\temp\..\runtime\", 2, @"C:\git\runtime\"}, { @"C:\.", 3, @"C:\"}, { @"C:\..", 3, @"C:\"}, @@ -101,7 +101,7 @@ namespace Tests.System.IO { @"C:\..\tmp\home", 3, @"C:\tmp\home" }, { @"C:\..\..\..\tmp\.\home", 3, @"C:\tmp\home" }, { @"C:\\tmp\\\home", 3, @"C:\tmp\home" }, - { @"C:\tmp\home\git\.\..\.\git\corefx\..\", 3, @"C:\tmp\home\git\" }, + { @"C:\tmp\home\git\.\..\.\git\runtime\..\", 3, @"C:\tmp\home\git\" }, { @"C:\.\tmp\home", 3, @"C:\tmp\home" }, { @"C:\tmp\home", 6, @"C:\tmp\home" }, @@ -113,7 +113,7 @@ namespace Tests.System.IO { @"C:\..\tmp\home", 5, @"C:\..\tmp\home" }, { @"C:\..\..\..\tmp\.\home", 6, @"C:\..\tmp\home" }, { @"C:\\tmp\\\home", 7, @"C:\\tmp\home" }, - { @"C:\tmp\home\git\.\..\.\git\corefx\..\", 7, @"C:\tmp\home\git\" }, + { @"C:\tmp\home\git\.\..\.\git\runtime\..\", 7, @"C:\tmp\home\git\" }, { @"C:\.\tmp\home", 5, @"C:\.\tmp\home" }, { @"C:\tmp\..", 2, @"C:\" }, @@ -124,7 +124,7 @@ namespace Tests.System.IO { @"C:\..\tmp\home", 2, @"C:\tmp\home" }, { @"C:\..\..\..\tmp\.\home", 2, @"C:\tmp\home" }, { @"C:\\tmp\\\home", 2, @"C:\tmp\home" }, - { @"C:\tmp\home\git\.\..\.\git\corefx\..\", 2, @"C:\tmp\home\git\" }, + { @"C:\tmp\home\git\.\..\.\git\runtime\..\", 2, @"C:\tmp\home\git\" }, { @"C:\.\tmp\home", 2, @"C:\tmp\home" }, { @"C:\tmp\..\..\", 10, @"C:\tmp\..\" }, @@ -135,24 +135,24 @@ namespace Tests.System.IO { @"C:\..\tmp\.\home", 10, @"C:\..\tmp\home" }, { @"C:\..\..\..\tmp\.\home", 10, @"C:\..\..\..\tmp\home" }, { @"C:\\tmp\\\home\..", 7, @"C:\\tmp\" }, - { @"C:\tmp\home\git\.\..\.\git\corefx\..\", 18, @"C:\tmp\home\git\.\git\" }, + { @"C:\tmp\home\git\.\..\.\git\runtime\..\", 18, @"C:\tmp\home\git\.\git\" }, { @"C:\.\tmp\home\.\.\", 9, @"C:\.\tmp\home\" }, }; public static TheoryData RemoveRelativeSegmentsFirstRelativeSegment => new TheoryData { - { @"C:\\git\corefx", 2, @"C:\git\corefx"}, - { @"C:\.\git\corefx", 2, @"C:\git\corefx"}, - { @"C:\\.\git\.\corefx", 2, @"C:\git\corefx"}, - { @"C:\..\git\corefx", 2, @"C:\git\corefx"}, - { @"C:\.\git\..\corefx", 2, @"C:\corefx"}, - { @"C:\.\git\corefx\..\", 2, @"C:\git\"}, - { @"C:\.\git\corefx\..\..\..\", 2, @"C:\"}, - { @"C:\.\git\corefx\..\..\.\", 2, @"C:\"}, - { @"C:\.\git\..\.\corefx\temp\..", 2, @"C:\corefx"}, - { @"C:\.\git\..\\\.\..\corefx", 2, @"C:\corefx"}, - { @"C:\.\git\corefx\", 2, @"C:\git\corefx\"}, - { @"C:\.\git\temp\..\corefx\", 2, @"C:\git\corefx\"}, + { @"C:\\git\runtime", 2, @"C:\git\runtime"}, + { @"C:\.\git\runtime", 2, @"C:\git\runtime"}, + { @"C:\\.\git\.\runtime", 2, @"C:\git\runtime"}, + { @"C:\..\git\runtime", 2, @"C:\git\runtime"}, + { @"C:\.\git\..\runtime", 2, @"C:\runtime"}, + { @"C:\.\git\runtime\..\", 2, @"C:\git\"}, + { @"C:\.\git\runtime\..\..\..\", 2, @"C:\"}, + { @"C:\.\git\runtime\..\..\.\", 2, @"C:\"}, + { @"C:\.\git\..\.\runtime\temp\..", 2, @"C:\runtime"}, + { @"C:\.\git\..\\\.\..\runtime", 2, @"C:\runtime"}, + { @"C:\.\git\runtime\", 2, @"C:\git\runtime\"}, + { @"C:\.\git\temp\..\runtime\", 2, @"C:\git\runtime\"}, { @"C:\\..\..", 3, @"C:\"} }; @@ -170,18 +170,18 @@ namespace Tests.System.IO public static TheoryData RemoveRelativeSegmentsFirstRelativeSegmentRoot => new TheoryData { - { @"C:\\git\corefx", 3, @"C:\git\corefx"}, - { @"C:\.\git\corefx", 3, @"C:\git\corefx"}, - { @"C:\\.\git\.\corefx", 3, @"C:\git\corefx"}, - { @"C:\..\git\corefx", 3, @"C:\git\corefx"}, - { @"C:\.\git\..\corefx", 3, @"C:\corefx"}, - { @"C:\.\git\corefx\..\", 3, @"C:\git\"}, - { @"C:\.\git\corefx\..\..\..\", 3, @"C:\"}, - { @"C:\.\git\corefx\..\..\.\", 3, @"C:\"}, - { @"C:\.\git\..\.\corefx\temp\..", 3, @"C:\corefx"}, - { @"C:\.\git\..\\\.\..\corefx", 3, @"C:\corefx"}, - { @"C:\.\git\corefx\", 3, @"C:\git\corefx\"}, - { @"C:\.\git\temp\..\corefx\", 3, @"C:\git\corefx\"}, + { @"C:\\git\runtime", 3, @"C:\git\runtime"}, + { @"C:\.\git\runtime", 3, @"C:\git\runtime"}, + { @"C:\\.\git\.\runtime", 3, @"C:\git\runtime"}, + { @"C:\..\git\runtime", 3, @"C:\git\runtime"}, + { @"C:\.\git\..\runtime", 3, @"C:\runtime"}, + { @"C:\.\git\runtime\..\", 3, @"C:\git\"}, + { @"C:\.\git\runtime\..\..\..\", 3, @"C:\"}, + { @"C:\.\git\runtime\..\..\.\", 3, @"C:\"}, + { @"C:\.\git\..\.\runtime\temp\..", 3, @"C:\runtime"}, + { @"C:\.\git\..\\\.\..\runtime", 3, @"C:\runtime"}, + { @"C:\.\git\runtime\", 3, @"C:\git\runtime\"}, + { @"C:\.\git\temp\..\runtime\", 3, @"C:\git\runtime\"}, }; [Theory, @@ -199,19 +199,19 @@ namespace Tests.System.IO public static TheoryData RemoveRelativeSegmentsUncData => new TheoryData { - { @"Server\Share\git\corefx", 12, @"Server\Share\git\corefx"}, - { @"Server\Share\\git\corefx", 12, @"Server\Share\git\corefx"}, - { @"Server\Share\git\\corefx", 12, @"Server\Share\git\corefx"}, - { @"Server\Share\git\.\corefx\.\\", 12, @"Server\Share\git\corefx\"}, - { @"Server\Share\git\corefx", 12, @"Server\Share\git\corefx"}, - { @"Server\Share\git\..\corefx", 12, @"Server\Share\corefx"}, - { @"Server\Share\git\corefx\..\", 12, @"Server\Share\git\"}, - { @"Server\Share\git\corefx\..\..\..\", 12, @"Server\Share\"}, - { @"Server\Share\git\corefx\..\..\.\", 12, @"Server\Share\"}, - { @"Server\Share\git\..\.\corefx\temp\..", 12, @"Server\Share\corefx"}, - { @"Server\Share\git\..\\\.\..\corefx", 12, @"Server\Share\corefx"}, - { @"Server\Share\git\corefx\", 12, @"Server\Share\git\corefx\"}, - { @"Server\Share\git\temp\..\corefx\", 12, @"Server\Share\git\corefx\"}, + { @"Server\Share\git\runtime", 12, @"Server\Share\git\runtime"}, + { @"Server\Share\\git\runtime", 12, @"Server\Share\git\runtime"}, + { @"Server\Share\git\\runtime", 12, @"Server\Share\git\runtime"}, + { @"Server\Share\git\.\runtime\.\\", 12, @"Server\Share\git\runtime\"}, + { @"Server\Share\git\runtime", 12, @"Server\Share\git\runtime"}, + { @"Server\Share\git\..\runtime", 12, @"Server\Share\runtime"}, + { @"Server\Share\git\runtime\..\", 12, @"Server\Share\git\"}, + { @"Server\Share\git\runtime\..\..\..\", 12, @"Server\Share\"}, + { @"Server\Share\git\runtime\..\..\.\", 12, @"Server\Share\"}, + { @"Server\Share\git\..\.\runtime\temp\..", 12, @"Server\Share\runtime"}, + { @"Server\Share\git\..\\\.\..\runtime", 12, @"Server\Share\runtime"}, + { @"Server\Share\git\runtime\", 12, @"Server\Share\git\runtime\"}, + { @"Server\Share\git\temp\..\runtime\", 12, @"Server\Share\git\runtime\"}, }; [Theory, @@ -226,120 +226,120 @@ namespace Tests.System.IO public static TheoryData RemoveRelativeSegmentsDeviceData => new TheoryData { - { @"\\.\git\corefx", 7, @"\\.\git\corefx"}, - { @"\\.\git\corefx", 7, @"\\.\git\corefx"}, - { @"\\.\git\\corefx", 7, @"\\.\git\corefx"}, - { @"\\.\git\.\corefx\.\\", 7, @"\\.\git\corefx\"}, - { @"\\.\git\corefx", 7, @"\\.\git\corefx"}, - { @"\\.\git\..\corefx", 7, @"\\.\git\corefx"}, - { @"\\.\git\corefx\..\", 7, @"\\.\git\"}, - { @"\\.\git\corefx\..\..\..\", 7, @"\\.\git\"}, - { @"\\.\git\corefx\..\..\.\", 7, @"\\.\git\"}, - { @"\\.\git\..\.\corefx\temp\..", 7, @"\\.\git\corefx"}, - { @"\\.\git\..\\\.\..\corefx", 7, @"\\.\git\corefx"}, - { @"\\.\git\corefx\", 7, @"\\.\git\corefx\"}, - { @"\\.\git\temp\..\corefx\", 7, @"\\.\git\corefx\"}, + { @"\\.\git\runtime", 7, @"\\.\git\runtime"}, + { @"\\.\git\runtime", 7, @"\\.\git\runtime"}, + { @"\\.\git\\runtime", 7, @"\\.\git\runtime"}, + { @"\\.\git\.\runtime\.\\", 7, @"\\.\git\runtime\"}, + { @"\\.\git\runtime", 7, @"\\.\git\runtime"}, + { @"\\.\git\..\runtime", 7, @"\\.\git\runtime"}, + { @"\\.\git\runtime\..\", 7, @"\\.\git\"}, + { @"\\.\git\runtime\..\..\..\", 7, @"\\.\git\"}, + { @"\\.\git\runtime\..\..\.\", 7, @"\\.\git\"}, + { @"\\.\git\..\.\runtime\temp\..", 7, @"\\.\git\runtime"}, + { @"\\.\git\..\\\.\..\runtime", 7, @"\\.\git\runtime"}, + { @"\\.\git\runtime\", 7, @"\\.\git\runtime\"}, + { @"\\.\git\temp\..\runtime\", 7, @"\\.\git\runtime\"}, - { @"\\.\.\corefx", 5, @"\\.\.\corefx"}, - { @"\\.\.\corefx", 5, @"\\.\.\corefx"}, - { @"\\.\.\\corefx", 5, @"\\.\.\corefx"}, - { @"\\.\.\.\corefx\.\\", 5, @"\\.\.\corefx\"}, - { @"\\.\.\corefx", 5, @"\\.\.\corefx"}, - { @"\\.\.\..\corefx", 5, @"\\.\.\corefx"}, - { @"\\.\.\corefx\..\", 5, @"\\.\.\"}, - { @"\\.\.\corefx\..\..\..\", 5, @"\\.\.\"}, - { @"\\.\.\corefx\..\..\.\", 5, @"\\.\.\"}, - { @"\\.\.\..\.\corefx\temp\..", 5, @"\\.\.\corefx"}, - { @"\\.\.\..\\\.\..\corefx", 5, @"\\.\.\corefx"}, - { @"\\.\.\corefx\", 5, @"\\.\.\corefx\"}, - { @"\\.\.\temp\..\corefx\", 5, @"\\.\.\corefx\"}, + { @"\\.\.\runtime", 5, @"\\.\.\runtime"}, + { @"\\.\.\runtime", 5, @"\\.\.\runtime"}, + { @"\\.\.\\runtime", 5, @"\\.\.\runtime"}, + { @"\\.\.\.\runtime\.\\", 5, @"\\.\.\runtime\"}, + { @"\\.\.\runtime", 5, @"\\.\.\runtime"}, + { @"\\.\.\..\runtime", 5, @"\\.\.\runtime"}, + { @"\\.\.\runtime\..\", 5, @"\\.\.\"}, + { @"\\.\.\runtime\..\..\..\", 5, @"\\.\.\"}, + { @"\\.\.\runtime\..\..\.\", 5, @"\\.\.\"}, + { @"\\.\.\..\.\runtime\temp\..", 5, @"\\.\.\runtime"}, + { @"\\.\.\..\\\.\..\runtime", 5, @"\\.\.\runtime"}, + { @"\\.\.\runtime\", 5, @"\\.\.\runtime\"}, + { @"\\.\.\temp\..\runtime\", 5, @"\\.\.\runtime\"}, - { @"\\.\..\corefx", 6, @"\\.\..\corefx"}, - { @"\\.\..\corefx", 6, @"\\.\..\corefx"}, - { @"\\.\..\\corefx", 6, @"\\.\..\corefx"}, - { @"\\.\..\.\corefx\.\\", 6, @"\\.\..\corefx\"}, - { @"\\.\..\corefx", 6, @"\\.\..\corefx"}, - { @"\\.\..\..\corefx", 6, @"\\.\..\corefx"}, - { @"\\.\..\corefx\..\", 6, @"\\.\..\"}, - { @"\\.\..\corefx\..\..\..\", 6, @"\\.\..\"}, - { @"\\.\..\corefx\..\..\.\", 6, @"\\.\..\"}, - { @"\\.\..\..\.\corefx\temp\..", 6, @"\\.\..\corefx"}, - { @"\\.\..\..\\\.\..\corefx", 6, @"\\.\..\corefx"}, - { @"\\.\..\corefx\", 6, @"\\.\..\corefx\"}, - { @"\\.\..\temp\..\corefx\", 6, @"\\.\..\corefx\"}, + { @"\\.\..\runtime", 6, @"\\.\..\runtime"}, + { @"\\.\..\runtime", 6, @"\\.\..\runtime"}, + { @"\\.\..\\runtime", 6, @"\\.\..\runtime"}, + { @"\\.\..\.\runtime\.\\", 6, @"\\.\..\runtime\"}, + { @"\\.\..\runtime", 6, @"\\.\..\runtime"}, + { @"\\.\..\..\runtime", 6, @"\\.\..\runtime"}, + { @"\\.\..\runtime\..\", 6, @"\\.\..\"}, + { @"\\.\..\runtime\..\..\..\", 6, @"\\.\..\"}, + { @"\\.\..\runtime\..\..\.\", 6, @"\\.\..\"}, + { @"\\.\..\..\.\runtime\temp\..", 6, @"\\.\..\runtime"}, + { @"\\.\..\..\\\.\..\runtime", 6, @"\\.\..\runtime"}, + { @"\\.\..\runtime\", 6, @"\\.\..\runtime\"}, + { @"\\.\..\temp\..\runtime\", 6, @"\\.\..\runtime\"}, - { @"\\.\\corefx", 4, @"\\.\corefx"}, - { @"\\.\\corefx", 4, @"\\.\corefx"}, - { @"\\.\\\corefx", 4, @"\\.\corefx"}, - { @"\\.\\.\corefx\.\\", 4, @"\\.\corefx\"}, - { @"\\.\\corefx", 4, @"\\.\corefx"}, - { @"\\.\\..\corefx", 4, @"\\.\corefx"}, - { @"\\.\\corefx\..\", 4, @"\\.\"}, - { @"\\.\\corefx\..\..\..\", 4, @"\\.\"}, - { @"\\.\\corefx\..\..\.\", 4, @"\\.\"}, - { @"\\.\\..\.\corefx\temp\..", 4, @"\\.\corefx"}, - { @"\\.\\..\\\.\..\corefx", 4, @"\\.\corefx"}, - { @"\\.\\corefx\", 4, @"\\.\corefx\"}, - { @"\\.\\temp\..\corefx\", 4, @"\\.\corefx\"}, + { @"\\.\\runtime", 4, @"\\.\runtime"}, + { @"\\.\\runtime", 4, @"\\.\runtime"}, + { @"\\.\\\runtime", 4, @"\\.\runtime"}, + { @"\\.\\.\runtime\.\\", 4, @"\\.\runtime\"}, + { @"\\.\\runtime", 4, @"\\.\runtime"}, + { @"\\.\\..\runtime", 4, @"\\.\runtime"}, + { @"\\.\\runtime\..\", 4, @"\\.\"}, + { @"\\.\\runtime\..\..\..\", 4, @"\\.\"}, + { @"\\.\\runtime\..\..\.\", 4, @"\\.\"}, + { @"\\.\\..\.\runtime\temp\..", 4, @"\\.\runtime"}, + { @"\\.\\..\\\.\..\runtime", 4, @"\\.\runtime"}, + { @"\\.\\runtime\", 4, @"\\.\runtime\"}, + { @"\\.\\temp\..\runtime\", 4, @"\\.\runtime\"}, }; public static TheoryData RemoveRelativeSegmentsDeviceRootData => new TheoryData { - { @"\\.\git\corefx", 8, @"\\.\git\corefx"}, - { @"\\.\git\corefx", 8, @"\\.\git\corefx"}, - { @"\\.\git\\corefx", 8, @"\\.\git\corefx"}, - { @"\\.\git\.\corefx\.\\", 8, @"\\.\git\corefx\"}, - { @"\\.\git\corefx", 8, @"\\.\git\corefx"}, - { @"\\.\git\..\corefx", 8, @"\\.\git\corefx"}, - { @"\\.\git\corefx\..\", 8, @"\\.\git\"}, - { @"\\.\git\corefx\..\..\..\", 8, @"\\.\git\"}, - { @"\\.\git\corefx\..\..\.\", 8, @"\\.\git\"}, - { @"\\.\git\..\.\corefx\temp\..", 8, @"\\.\git\corefx"}, - { @"\\.\git\..\\\.\..\corefx", 8, @"\\.\git\corefx"}, - { @"\\.\git\corefx\", 8, @"\\.\git\corefx\"}, - { @"\\.\git\temp\..\corefx\", 8, @"\\.\git\corefx\"}, + { @"\\.\git\runtime", 8, @"\\.\git\runtime"}, + { @"\\.\git\runtime", 8, @"\\.\git\runtime"}, + { @"\\.\git\\runtime", 8, @"\\.\git\runtime"}, + { @"\\.\git\.\runtime\.\\", 8, @"\\.\git\runtime\"}, + { @"\\.\git\runtime", 8, @"\\.\git\runtime"}, + { @"\\.\git\..\runtime", 8, @"\\.\git\runtime"}, + { @"\\.\git\runtime\..\", 8, @"\\.\git\"}, + { @"\\.\git\runtime\..\..\..\", 8, @"\\.\git\"}, + { @"\\.\git\runtime\..\..\.\", 8, @"\\.\git\"}, + { @"\\.\git\..\.\runtime\temp\..", 8, @"\\.\git\runtime"}, + { @"\\.\git\..\\\.\..\runtime", 8, @"\\.\git\runtime"}, + { @"\\.\git\runtime\", 8, @"\\.\git\runtime\"}, + { @"\\.\git\temp\..\runtime\", 8, @"\\.\git\runtime\"}, - { @"\\.\.\corefx", 6, @"\\.\.\corefx"}, - { @"\\.\.\corefx", 6, @"\\.\.\corefx"}, - { @"\\.\.\\corefx", 6, @"\\.\.\corefx"}, - { @"\\.\.\.\corefx\.\\", 6, @"\\.\.\corefx\"}, - { @"\\.\.\corefx", 6, @"\\.\.\corefx"}, - { @"\\.\.\..\corefx", 6, @"\\.\.\corefx"}, - { @"\\.\.\corefx\..\", 6, @"\\.\.\"}, - { @"\\.\.\corefx\..\..\..\", 6, @"\\.\.\"}, - { @"\\.\.\corefx\..\..\.\", 6, @"\\.\.\"}, - { @"\\.\.\..\.\corefx\temp\..", 6, @"\\.\.\corefx"}, - { @"\\.\.\..\\\.\..\corefx", 6, @"\\.\.\corefx"}, - { @"\\.\.\corefx\", 6, @"\\.\.\corefx\"}, - { @"\\.\.\temp\..\corefx\", 6, @"\\.\.\corefx\"}, + { @"\\.\.\runtime", 6, @"\\.\.\runtime"}, + { @"\\.\.\runtime", 6, @"\\.\.\runtime"}, + { @"\\.\.\\runtime", 6, @"\\.\.\runtime"}, + { @"\\.\.\.\runtime\.\\", 6, @"\\.\.\runtime\"}, + { @"\\.\.\runtime", 6, @"\\.\.\runtime"}, + { @"\\.\.\..\runtime", 6, @"\\.\.\runtime"}, + { @"\\.\.\runtime\..\", 6, @"\\.\.\"}, + { @"\\.\.\runtime\..\..\..\", 6, @"\\.\.\"}, + { @"\\.\.\runtime\..\..\.\", 6, @"\\.\.\"}, + { @"\\.\.\..\.\runtime\temp\..", 6, @"\\.\.\runtime"}, + { @"\\.\.\..\\\.\..\runtime", 6, @"\\.\.\runtime"}, + { @"\\.\.\runtime\", 6, @"\\.\.\runtime\"}, + { @"\\.\.\temp\..\runtime\", 6, @"\\.\.\runtime\"}, - { @"\\.\..\corefx", 7, @"\\.\..\corefx"}, - { @"\\.\..\corefx", 7, @"\\.\..\corefx"}, - { @"\\.\..\\corefx", 7, @"\\.\..\corefx"}, - { @"\\.\..\.\corefx\.\\", 7, @"\\.\..\corefx\"}, - { @"\\.\..\corefx", 7, @"\\.\..\corefx"}, - { @"\\.\..\..\corefx", 7, @"\\.\..\corefx"}, - { @"\\.\..\corefx\..\", 7, @"\\.\..\"}, - { @"\\.\..\corefx\..\..\..\", 7, @"\\.\..\"}, - { @"\\.\..\corefx\..\..\.\", 7, @"\\.\..\"}, - { @"\\.\..\..\.\corefx\temp\..", 7, @"\\.\..\corefx"}, - { @"\\.\..\..\\\.\..\corefx", 7, @"\\.\..\corefx"}, - { @"\\.\..\corefx\", 7, @"\\.\..\corefx\"}, - { @"\\.\..\temp\..\corefx\", 7, @"\\.\..\corefx\"}, + { @"\\.\..\runtime", 7, @"\\.\..\runtime"}, + { @"\\.\..\runtime", 7, @"\\.\..\runtime"}, + { @"\\.\..\\runtime", 7, @"\\.\..\runtime"}, + { @"\\.\..\.\runtime\.\\", 7, @"\\.\..\runtime\"}, + { @"\\.\..\runtime", 7, @"\\.\..\runtime"}, + { @"\\.\..\..\runtime", 7, @"\\.\..\runtime"}, + { @"\\.\..\runtime\..\", 7, @"\\.\..\"}, + { @"\\.\..\runtime\..\..\..\", 7, @"\\.\..\"}, + { @"\\.\..\runtime\..\..\.\", 7, @"\\.\..\"}, + { @"\\.\..\..\.\runtime\temp\..", 7, @"\\.\..\runtime"}, + { @"\\.\..\..\\\.\..\runtime", 7, @"\\.\..\runtime"}, + { @"\\.\..\runtime\", 7, @"\\.\..\runtime\"}, + { @"\\.\..\temp\..\runtime\", 7, @"\\.\..\runtime\"}, - { @"\\.\\corefx", 5, @"\\.\\corefx"}, - { @"\\.\\corefx", 5, @"\\.\\corefx"}, - { @"\\.\\\corefx", 5, @"\\.\\corefx"}, - { @"\\.\\.\corefx\.\\", 5, @"\\.\\corefx\"}, - { @"\\.\\corefx", 5, @"\\.\\corefx"}, - { @"\\.\\..\corefx", 5, @"\\.\\corefx"}, - { @"\\.\\corefx\..\", 5, @"\\.\\"}, - { @"\\.\\corefx\..\..\..\", 5, @"\\.\\"}, - { @"\\.\\corefx\..\..\.\", 5, @"\\.\\"}, - { @"\\.\\..\.\corefx\temp\..", 5, @"\\.\\corefx"}, - { @"\\.\\..\\\.\..\corefx", 5, @"\\.\\corefx"}, - { @"\\.\\corefx\", 5, @"\\.\\corefx\"}, - { @"\\.\\temp\..\corefx\", 5, @"\\.\\corefx\"}, + { @"\\.\\runtime", 5, @"\\.\\runtime"}, + { @"\\.\\runtime", 5, @"\\.\\runtime"}, + { @"\\.\\\runtime", 5, @"\\.\\runtime"}, + { @"\\.\\.\runtime\.\\", 5, @"\\.\\runtime\"}, + { @"\\.\\runtime", 5, @"\\.\\runtime"}, + { @"\\.\\..\runtime", 5, @"\\.\\runtime"}, + { @"\\.\\runtime\..\", 5, @"\\.\\"}, + { @"\\.\\runtime\..\..\..\", 5, @"\\.\\"}, + { @"\\.\\runtime\..\..\.\", 5, @"\\.\\"}, + { @"\\.\\..\.\runtime\temp\..", 5, @"\\.\\runtime"}, + { @"\\.\\..\\\.\..\runtime", 5, @"\\.\\runtime"}, + { @"\\.\\runtime\", 5, @"\\.\\runtime\"}, + { @"\\.\\temp\..\runtime\", 5, @"\\.\\runtime\"}, }; [Theory, @@ -370,7 +370,7 @@ namespace Tests.System.IO { "/../tmp/home", 1, "/tmp/home" }, { "/../../../tmp/./home", 1, "/tmp/home" }, { "//tmp///home", 1, "/tmp/home" }, - { "/tmp/home/git/./.././git/corefx/../", 1, "/tmp/home/git/" }, + { "/tmp/home/git/./.././git/runtime/../", 1, "/tmp/home/git/" }, { "/./tmp/home", 1, "/tmp/home" }, { "/tmp/home", 4, "/tmp/home" }, @@ -382,7 +382,7 @@ namespace Tests.System.IO { "/../tmp/home", 3, "/../tmp/home" }, { "/../../../tmp/./home", 4, "/../tmp/home" }, { "//tmp///home", 5, "//tmp/home" }, - { "/tmp/home/git/./.././git/corefx/../", 5, "/tmp/home/git/" }, + { "/tmp/home/git/./.././git/runtime/../", 5, "/tmp/home/git/" }, { "/./tmp/home", 3, "/./tmp/home" }, { "/tmp/../../", 8, "/tmp/../" }, @@ -393,7 +393,7 @@ namespace Tests.System.IO { "/../tmp/./home", 8, "/../tmp/home" }, { "/../../../tmp/./home", 8, "/../../../tmp/home" }, { "//tmp///home/..", 5, "//tmp/" }, - { "/tmp/home/git/./.././git/corefx/../", 16, "/tmp/home/git/./git/" }, + { "/tmp/home/git/./.././git/runtime/../", 16, "/tmp/home/git/./git/" }, { "/./tmp/home/././", 7, "/./tmp/home/" }, }; diff --git a/src/libraries/Common/tests/Tests/System/IO/PathInternal.Windows.Tests.cs b/src/libraries/Common/tests/Tests/System/IO/PathInternal.Windows.Tests.cs index 87609e9..504bc45 100644 --- a/src/libraries/Common/tests/Tests/System/IO/PathInternal.Windows.Tests.cs +++ b/src/libraries/Common/tests/Tests/System/IO/PathInternal.Windows.Tests.cs @@ -143,7 +143,7 @@ namespace Tests.System.IO public static TheoryData GetRootLength_Data => new TheoryData { - { @"C:\git\corefx", 3, 7 }, + { @"C:\git\runtime", 3, 7 }, { @"C:\git\.\", 3, 7 }, { @"C:\git\..\", 3, 7 }, { @"C:\git\..\..\", 3, 7 }, @@ -162,7 +162,7 @@ namespace Tests.System.IO { @"C:git\", 2, 10}, { @"C:git\\", 2, 10}, { @"C:git", 2, 9}, - { @"C:git\corefx", 2, 10}, + { @"C:git\runtime", 2, 10}, { @"C:git\.\", 2, 10}, { @"C:git\\.\", 2, 10}, { @"C:git\..\", 2, 10}, @@ -198,8 +198,8 @@ namespace Tests.System.IO { // Historically we've never included the separator after a UNC with GetPathRoot() // We'll continue to do so. - { @"a\b\git\corefx", 3}, - { @"Server\Share\git\corefx", 12}, + { @"a\b\git\runtime", 3}, + { @"Server\Share\git\runtime", 12}, { @"Server\Share\git\.\", 12}, { @"Server\Share\git\..\", 12}, { @"Server\Share\git\..\..\", 12}, @@ -215,8 +215,8 @@ namespace Tests.System.IO // We expect paths to be well formed up to the root. If you have "\\Server\\Share" // instead of "\\Server\Share", all bets are off. We'll test them here to make // sure we don't choke. - { @"\a\b\git\corefx", 2}, - { @"a\\b\git\corefx", 2}, + { @"\a\b\git\runtime", 2}, + { @"a\\b\git\runtime", 2}, }; [Theory, -- 2.7.4