diff options
author | Vsevolod Kukol <sevoku@microsoft.com> | 2019-08-09 19:28:39 +0300 |
---|---|---|
committer | Mike Krüger <mikkrg@microsoft.com> | 2019-08-15 10:05:32 +0300 |
commit | 2f498ea2275b7f77046ffaa8797e692db78cce75 (patch) | |
tree | 1cc7afa31a3ab98ed1c8d543e8a4cfcec2f6b911 /main | |
parent | 419b7f56276b5906f116697742d5bddf9ad7e1d6 (diff) |
[Core] Check with alternative path separator when testing child FilePath
detection
Diffstat (limited to 'main')
-rw-r--r-- | main/tests/MonoDevelop.Core.Tests/MonoDevelop.Core/FilePathTests.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/tests/MonoDevelop.Core.Tests/MonoDevelop.Core/FilePathTests.cs b/main/tests/MonoDevelop.Core.Tests/MonoDevelop.Core/FilePathTests.cs index 054ce5a4a8..3ce3770320 100644 --- a/main/tests/MonoDevelop.Core.Tests/MonoDevelop.Core/FilePathTests.cs +++ b/main/tests/MonoDevelop.Core.Tests/MonoDevelop.Core/FilePathTests.cs @@ -107,6 +107,10 @@ namespace MonoDevelop.Core child = parent.Combine ("child"); Assert.IsTrue (child.IsChildPathOf (parent)); + // Alternative trailing directory char. + parent = FilePath.Build ("base" + Path.AltDirectorySeparatorChar); + Assert.IsTrue (child.IsChildPathOf (parent)); + // https://bugzilla.xamarin.com/show_bug.cgi?id=48212 Assert.IsFalse (child.IsChildPathOf (child)); } |