예제 #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));
 }