public CreateTempDirectory ( ) : ITemporaryDirectory | ||
Результат | ITemporaryDirectory |
public msbuild_emitter() { _fileSystem = new InMemoryFileSystem(); _emitter = new MSBuildInstructionEmitter(_fileSystem); RootDirectory = _fileSystem.CreateTempDirectory(); _emitter.RootPath = RootDirectory.Path; ProjectDirectory = RootDirectory.GetDirectory("src").GetDirectory("Project"); ProjectFile = ProjectDirectory.GetFile("Project.csproj"); BinDirectory = _fileSystem.CreateTempDirectory(); GacDirectory = _fileSystem.CreateTempDirectory(); TempDirectory = _fileSystem.CreateTempDirectory(); BinPath = new OpenFileSystem.IO.Path(System.IO.Path.Combine(_emitter.RootPath, "bin")); }
public void non_existing_file( [Values(FileMode.Append, FileMode.Create, FileMode.CreateNew, FileMode.Open, FileMode.OpenOrCreate, FileMode.Truncate)]FileMode mode, [Values(FileAccess.Read, FileAccess.ReadWrite, FileAccess.Write)]FileAccess access, [Values(FileShare.Delete, FileShare.None, FileShare.Read, FileShare.ReadWrite, FileShare.Write)]FileShare share) { var inMem = new InMemoryFileSystem(); using (var memTempDir = inMem.CreateTempDirectory()) using (var localTempDir = LocalFileSystem.Instance.CreateTempDirectory()) { var memTempFile = memTempDir.GetFile(Guid.NewGuid().ToString()); var localTempFile = localTempDir.GetFile(Guid.NewGuid().ToString()); TestSameCore(memTempFile, localTempFile, mode, access, share); } }
public context_source_dir() { file_system = new InMemoryFileSystem(); root = file_system.CreateTempDirectory(); env = new InMemoryEnvironment(root); }
public folder_repository() { file_system = new InMemoryFileSystem(); repository_directory = file_system.CreateTempDirectory(); source_repository = new InMemoryRepository("somewhere"); }
public visual_studio() { FileSystem = new InMemoryFileSystem(); SlnDir = FileSystem.CreateTempDirectory(); }