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));
     }
 }
Exemplo n.º 2
0
 public InMemoryFile(IInMemoryFileSystem fileSystem, IEnumerable <IFileExtension> extensions)
 {
     this.fileSystem = fileSystem;
     this.extensions = extensions;
 }
Exemplo n.º 3
0
 public InMemoryFileInfo(IInMemoryFileSystem fileSystem, string pathToFile)
 {
     this.fileSystem = fileSystem;
     this.pathToFile = pathToFile;
 }
Exemplo n.º 4
0
 public InMemoryFileSystemExtensionsFacts()
 {
     this.fileSystem = new InMemoryFileSystem();
 }
Exemplo n.º 5
0
 public InMemoryDirectoryInfo(IInMemoryFileSystem fileSystem, string pathToDirectory)
 {
     this.fileSystem      = fileSystem;
     this.pathToDirectory = pathToDirectory.NormalizePathEnding();
 }
Exemplo n.º 6
0
 public InMemoryFile(IInMemoryFileSystem fileSystem)
 {
     this.fileSystem = fileSystem;
 }
Exemplo n.º 7
0
 public InMemoryDirectoryInfo(IInMemoryFileSystem fileSystem, string pathToDirectory)
 {
     this.fileSystem = fileSystem;
     this.pathToDirectory = pathToDirectory.NormalizePathEnding();
 }
Exemplo n.º 8
0
 public InMemoryFile(IInMemoryFileSystem fileSystem)
 {
     this.fileSystem = fileSystem;
 }
Exemplo n.º 9
0
 public InMemoryDirectory(IInMemoryFileSystem fileSystem)
 {
     this.fileSystem = fileSystem;
 }
Exemplo n.º 10
0
 public InMemoryDirectory(IInMemoryFileSystem fileSystem, IEnumerable <IDirectoryExtension> extensions)
 {
     this.fileSystem = fileSystem;
     this.extensions = extensions;
 }
Exemplo n.º 11
0
 public InMemoryFileInfo(IInMemoryFileSystem fileSystem, string pathToFile)
 {
     this.fileSystem = fileSystem;
     this.pathToFile = pathToFile;
 }