public void TestFileHelperPathRelativeWithForwardSlash2() { var tempDir = Path.GetTempPath(); Directory.SetCurrentDirectory(tempDir); var result = FileRepo.PathOffset("/someotherpath/"); Assert.AreEqual(result, tempDir + "someotherpath"); }
public void TestFileHelperPathRelativeWithFileName2() { var tempDir = Path.GetTempPath(); Directory.SetCurrentDirectory(tempDir); var result = FileRepo.PathOffset("someotherpath\\somefile.csproj"); Assert.AreEqual(result, tempDir + "someotherpath\\somefile.csproj"); }
public void TestFileHelperPathAbsolute() { var tempDir = Path.GetTempPath(); Directory.SetCurrentDirectory(tempDir); var result = FileRepo.PathOffset("c:\\somepath\\someotherpath"); Assert.AreEqual(result, "c:\\somepath\\someotherpath"); }