public static void EnsureParentDirectoryExists(this IInMemoryFileSystem fileSystem, string absoluteFilePath) { if (!fileSystem.DirectoryExists(Path.GetDirectoryName(absoluteFilePath))) { throw new DirectoryNotFoundException(string.Format("Could not find a part of the path '{0}'.", absoluteFilePath)); } }
public InMemoryFile(IInMemoryFileSystem fileSystem, IEnumerable <IFileExtension> extensions) { this.fileSystem = fileSystem; this.extensions = extensions; }
public InMemoryFileInfo(IInMemoryFileSystem fileSystem, string pathToFile) { this.fileSystem = fileSystem; this.pathToFile = pathToFile; }
public InMemoryFileSystemExtensionsFacts() { this.fileSystem = new InMemoryFileSystem(); }
public InMemoryDirectoryInfo(IInMemoryFileSystem fileSystem, string pathToDirectory) { this.fileSystem = fileSystem; this.pathToDirectory = pathToDirectory.NormalizePathEnding(); }
public InMemoryFile(IInMemoryFileSystem fileSystem) { this.fileSystem = fileSystem; }
public InMemoryDirectoryInfo(IInMemoryFileSystem fileSystem, string pathToDirectory) { this.fileSystem = fileSystem; this.pathToDirectory = pathToDirectory.NormalizePathEnding(); }
public InMemoryFile(IInMemoryFileSystem fileSystem) { this.fileSystem = fileSystem; }
public InMemoryDirectory(IInMemoryFileSystem fileSystem) { this.fileSystem = fileSystem; }
public InMemoryDirectory(IInMemoryFileSystem fileSystem, IEnumerable <IDirectoryExtension> extensions) { this.fileSystem = fileSystem; this.extensions = extensions; }
public InMemoryFileInfo(IInMemoryFileSystem fileSystem, string pathToFile) { this.fileSystem = fileSystem; this.pathToFile = pathToFile; }