diff options
Diffstat (limited to 'mcs/class/corlib/Test/System.IO/PathTest.cs')
-rw-r--r-- | mcs/class/corlib/Test/System.IO/PathTest.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mcs/class/corlib/Test/System.IO/PathTest.cs b/mcs/class/corlib/Test/System.IO/PathTest.cs index fb53d803b88..77822ac98c4 100644 --- a/mcs/class/corlib/Test/System.IO/PathTest.cs +++ b/mcs/class/corlib/Test/System.IO/PathTest.cs @@ -280,6 +280,8 @@ namespace MonoTests.System.IO Assert.AreEqual (@"C:\dir", Path.GetDirectoryName (@"C:\dir\"), "#B5"); Assert.AreEqual (@"C:\dir", Path.GetDirectoryName (@"C:\dir\dir"), "#B6"); Assert.AreEqual (@"C:\dir\dir", Path.GetDirectoryName (@"C:\dir\dir\"), "#B7"); + Assert.AreEqual (@"C:", Path.GetDirectoryName (@"C:foo.txt"), "#B8"); + Assert.AreEqual (@"C:dir", Path.GetDirectoryName (@"C:dir\"), "#B9"); Assert.AreEqual ("\\foo\\bar", Path.GetDirectoryName ("/foo//bar/dingus"), "#C1"); Assert.AreEqual ("foo\\bar", Path.GetDirectoryName ("foo/bar/"), "#C2"); |