Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit fd20bc3

Browse files
authored
Add a test to validate sensitivity on OSX (#27959)
See #26797
1 parent c45c7a7 commit fd20bc3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Common/tests/Tests/System/IO/PathInternal.Unix.Tests.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,14 @@ public void NormalizeDirectorySeparatorTests(string path, string expected)
4141
if (string.Equals(path, expected, StringComparison.Ordinal))
4242
Assert.Same(path, result);
4343
}
44+
45+
[Fact]
46+
[PlatformSpecific(TestPlatforms.OSX)]
47+
public void IsCaseInsensitive_OSX()
48+
{
49+
// There have been reports of casing handling not being appropriate on MacOS
50+
// https://github.com/dotnet/corefx/issues/26797
51+
Assert.False(PathInternal.IsCaseSensitive);
52+
}
4453
}
4554
}

0 commit comments

Comments
 (0)