Beispiel #1
0
        public void TestFileHelperPathRelativeWithForwardSlash2()
        {
            var tempDir = Path.GetTempPath();

            Directory.SetCurrentDirectory(tempDir);

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

            Assert.AreEqual(result, tempDir + "someotherpath");
        }
Beispiel #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");
        }
Beispiel #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");
        }