コード例 #1
0
 public void IgnoresAFile()
 {
     h.SetupFake(r =>
     {
         r.Changeset(1, "Project created from template", DateTime.Parse("2012-01-01 12:12:12 -05:00"))
         .Change(TfsChangeType.Add, TfsItemType.Folder, "$/MyProject");
         r.Changeset(2, "Add some files", DateTime.Parse("2012-01-02 12:12:12 -05:00"))
         .Change(TfsChangeType.Add, TfsItemType.File, "$/MyProject/README", "tldr\nanother line\n")
         .Change(TfsChangeType.Add, TfsItemType.File, "$/MyProject/app.exe", "Do not include");
     });
     h.Run("clone", h.TfsUrl, "$/MyProject", "MyProject", "--ignore-regex=.exe$");
     h.AssertNoFileInWorkspace("MyProject", "app.exe");
 }