コード例 #1
0
		public void CanGetLocalFile()
		{
			// "C:\Users\xyz\Documents\dev\logibit_cms\scm\trunk\Tests\Henrik.Cms.Tests\TestGlobals.cs";
			var d = new DirectoryAdapter(new MapPathImpl(), false, null);
			string path = Path.GetPathWithoutLastBit(d.MapPath("~/../../TestGlobals.cs")); // get directory instead
			Console.WriteLine(path);
			Assert.That(d.Exists(path));
		}
コード例 #2
0
        public void CanGetLocalFile()
        {
            // "C:\Users\xyz\Documents\dev\logibit_cms\scm\trunk\Tests\Henrik.Cms.Tests\TestGlobals.cs";
            var    d    = new DirectoryAdapter(new MapPathImpl(), false, null);
            string path = Path.GetPathWithoutLastBit(d.MapPath("~/../../TestGlobals.cs"));             // get directory instead

            Console.WriteLine(path);
            Assert.That(d.Exists(path));
        }