public void Getting_a_directory_now() { FileSystemLocator locator = new LocalFileSystemLocator(); Directory directory = locator.GetDirectory(DirectoryName.GetDirectoryName("nug.zip")); directory.Name.GetName().ShouldEqual("nug.zip"); }
public void Getting_busy() { FileSystemLocator locator = new LocalFileSystemLocator(); File file = locator.GetFile(FileName.GetFileName("nug.zip/manifest.json")); file.Name.GetName().ShouldEqual("manifest.json"); }
public void Getting_busy() { FileSystemLocator locator = new LocalFileSystemLocator(); File file = locator.GetFile(FileName.GetFileName("FileSystem\\FileSpecs\\sample.zip/manifest.json")); file.Name.GetName().ShouldEqual("manifest.json"); }
public void Setup() { _fileName = FileName.GetFileName(Assembly.GetExecutingAssembly().Location); FileSystemLocator locator = new LocalFileSystemLocator(); File file = locator.GetFile(_fileName); file.Exists().ShouldBeTrue(); file.Name.GetPath().ShouldEqual(_fileName.GetPath()); }