public void ExpandUser_WithCustomHomeDirString_ExpandsDir() { var homeDir = new WindowsPath(@"C:\users\test"); var path = new WindowsPath("~/tmp"); var expected = homeDir.Join("tmp"); var actual = path.ExpandUser(homeDir); Assert.AreEqual(expected, actual); }
public void JoinIPath_WithAnotherPath_ReturnsWindowsPath() { IPath path = new WindowsPath(@"C:\tmp"); IPath other = new WindowsPath(@"C:\tmp"); var final = path.Join(other); Assert.IsTrue(final is WindowsPath); }