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