X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FTest%2FSystem.IO%2FPathTest.cs;h=c3ab9935350c9b1f3071960bda46d06d97b74d81;hb=249daf43de9c64fefe9f103fc15bb462665b0167;hp=897342eba7f20d6483be863287879c2b469029e1;hpb=3360de9221d7e4012822eb572abb41339c707645;p=mono.git diff --git a/mcs/class/corlib/Test/System.IO/PathTest.cs b/mcs/class/corlib/Test/System.IO/PathTest.cs index 897342eba7f..c3ab9935350 100644 --- a/mcs/class/corlib/Test/System.IO/PathTest.cs +++ b/mcs/class/corlib/Test/System.IO/PathTest.cs @@ -688,6 +688,11 @@ namespace MonoTests.System.IO i, root + test [i, 0], ex.GetType ())); } } + + // These cases require that we don't pass a root to GetFullPath - it should return the proper drive root. + string root4 = Path.GetPathRoot(Directory.GetCurrentDirectory()); + Assert.AreEqual(root4, Path.GetFullPath(@"\")); + Assert.AreEqual(root4, Path.GetFullPath("/")); } [Test]