public void Delete() { if (Directory.Exists(this.RootPath)) { SystemIORunner.RecursiveDelete(this.RootPath); } }
public void GitTrace() { Dictionary <string, string> environmentVariables = new Dictionary <string, string>(); this.Enlistment.Status(trace: "1"); this.Enlistment.Status(trace: "2"); string logPath = Path.Combine(this.Enlistment.RepoRoot, "log-file.txt"); this.Enlistment.Status(trace: logPath); FileSystemRunner fileSystem = new SystemIORunner(); fileSystem.FileExists(logPath).ShouldBeTrue(); string.IsNullOrWhiteSpace(fileSystem.ReadAllText(logPath)).ShouldBeFalse(); }
public SparseSetTests() : base(fullClone: false) { this.fileSystem = new SystemIORunner(); this.currentFolderList = new List <string>(); }
public void DeleteControlRepo() { SystemIORunner.RecursiveDelete(this.fastFetchControlRoot); }
public void TearDownTests() { SystemIORunner.RecursiveDelete(this.fastFetchRepoRoot); }