示例#1
0
        public void TestFromPath_windows()
        {
            Assume.That(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));

            Assert.AreEqual(
                "/absolute/path", AbsoluteUnixPath.FromPath(Paths.Get("T:\\absolute\\path")).ToString());
        }
示例#2
0
 public void TestFromPath()
 {
     Assert.AreEqual(
         "/absolute/path", AbsoluteUnixPath.FromPath(Paths.Get("/absolute/path")).ToString());
 }
示例#3
0
文件: Path.cs 项目: tiaotiao97/jib
 internal AbsoluteUnixPath ToAbsolutePath()
 {
     return(AbsoluteUnixPath.FromPath(this));
 }