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)); }