Esempio n. 1
0
        public void TestFileHelperPathRelativeWithForwardSlash2()
        {
            var tempDir = Path.GetTempPath();

            Directory.SetCurrentDirectory(tempDir);

            var result = FileRepo.PathOffset("/someotherpath/");

            Assert.AreEqual(result, tempDir + "someotherpath");
        }
Esempio n. 2
0
        public void TestFileHelperPathRelativeWithFileName2()
        {
            var tempDir = Path.GetTempPath();

            Directory.SetCurrentDirectory(tempDir);

            var result = FileRepo.PathOffset("someotherpath\\somefile.csproj");

            Assert.AreEqual(result, tempDir + "someotherpath\\somefile.csproj");
        }
Esempio n. 3
0
        public void TestFileHelperPathAbsolute()
        {
            var tempDir = Path.GetTempPath();

            Directory.SetCurrentDirectory(tempDir);

            var result = FileRepo.PathOffset("c:\\somepath\\someotherpath");

            Assert.AreEqual(result, "c:\\somepath\\someotherpath");
        }