Exemple #1
0
        public void ManglePath4()
        {
            var provider = new CacheFileProvider(Path.GetTempPath());
            var fileInfo = provider.GetFileInfo(Path.Combine("..", ".."));

            Assert.Null(fileInfo.PhysicalPath);
        }
Exemple #2
0
        public void ManglePath1()
        {
            var provider = new CacheFileProvider(Path.GetTempPath());

            Assert.Equal(
                Path.Combine(Path.GetTempPath(), "a", "cache-a.jar"),
                provider.GetFileInfo(Path.Combine("a", "a.jar")).PhysicalPath);
        }
Exemple #3
0
        public void ManglePath2()
        {
            var provider = new CacheFileProvider(Path.GetTempPath());

            Assert.Equal(
                Path.Combine(Path.GetTempPath(), "a", "cache-a.jar"),
                provider.GetFileInfo(Path.Combine("a", "a.jar") + Path.DirectorySeparatorChar).PhysicalPath);
        }
        public void MangePath3()
        {
            var provider = new CacheFileProvider(Path.GetTempPath());

            Assert.Equal(
                Path.Combine(Path.GetTempPath(), "cache-tt.jar"),
                provider.GetFileInfo("tt.jar").PhysicalPath);
        }