예제 #1
0
 public void Delete()
 {
     if (Directory.Exists(this.RootPath))
     {
         SystemIORunner.RecursiveDelete(this.RootPath);
     }
 }
예제 #2
0
        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();
        }
예제 #3
0
 public SparseSetTests() : base(fullClone: false)
 {
     this.fileSystem        = new SystemIORunner();
     this.currentFolderList = new List <string>();
 }
예제 #4
0
 public void DeleteControlRepo()
 {
     SystemIORunner.RecursiveDelete(this.fastFetchControlRoot);
 }
예제 #5
0
 public void TearDownTests()
 {
     SystemIORunner.RecursiveDelete(this.fastFetchRepoRoot);
 }