예제 #1
0
 public void TestGitCleanUntrackedFiles()
 {
     using (var tempRepo = new TempDirectory())
     {
         CreateTempRepo(tempRepo);
         File.WriteAllText(Path.Combine(tempRepo.Path, "content.txt"), "text");
         var repo = new GitRepository(Path.GetFileName(tempRepo.Path),
                                      Directory.GetParent(tempRepo.Path).FullName, Log);
         Helper.SetWorkspace(repo.Workspace);
         repo.Clean();
         Assert.AreEqual("", repo.ShowLocalChanges());
     }
 }