Esempio n. 1
0
 public FakeDirectory(FakeFileSystem fileSystem, DirectoryPath path, bool creatable)
 {
     _fileSystem = fileSystem;
     _path = path;
     _exist = false;
     _creatable = creatable;
 }
Esempio n. 2
0
 private static FakeFileSystem CreateFileSystem(bool isUnix)
 {
     var fileSystem = new FakeFileSystem(isUnix);
     fileSystem.GetCreatedDirectory("/Temp");
     fileSystem.GetCreatedDirectory("/Temp/Hello");
     fileSystem.GetCreatedDirectory("/Temp/Hello/World");
     fileSystem.GetCreatedDirectory("/Temp/Goodbye");
     fileSystem.GetCreatedFile("/Presentation.ppt");
     fileSystem.GetCreatedFile("/Budget.xlsx");
     fileSystem.GetCreatedFile("/Text.txt");
     fileSystem.GetCreatedFile("/Temp");
     fileSystem.GetCreatedFile("/Temp/Hello/World/Text.txt");
     fileSystem.GetCreatedFile("/Temp/Hello/World/Picture.png");
     fileSystem.GetCreatedFile("/Temp/Goodbye/OtherText.txt");
     fileSystem.GetCreatedFile("/Temp/Goodbye/OtherPicture.png");
     return fileSystem;
 }
Esempio n. 3
0
 public FakeFile(FakeFileSystem fileSystem, FilePath path)
 {
     _fileSystem = fileSystem;
     _path       = path;
     _exists     = false;
 }
Esempio n. 4
0
 public FakeFile(FakeFileSystem fileSystem, FilePath path)
 {
     _fileSystem = fileSystem;
     _path = path;
     _exists = false;
 }