Beispiel #1
0
 public void CloneWithMixedUpCase()
 {
     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, "First commit", DateTime.Parse("2012-01-02 12:12:12 -05:00"))
         .Change(TfsChangeType.Add, TfsItemType.Folder, "$/MyProject/Foo")
         .Change(TfsChangeType.Add, TfsItemType.Folder, "$/MyProject/Foo/Bar")
         .Change(TfsChangeType.Add, TfsItemType.File, "$/MyProject/Foo/Bar/File.txt", "File contents");
         r.Changeset(3, "Second commit", DateTime.Parse("2012-01-02 12:12:12 -05:00"))
         .Change(TfsChangeType.Edit, TfsItemType.File, "$/myproject/foo/BAR/file.txt", "Updated file contents in path with different casing")
         .Change(TfsChangeType.Add, TfsItemType.File, "$/myproject/FOO/bar/file2.txt", "Another file in the same folder, but with different casing");
     });
     h.Run("clone", h.TfsUrl, "$/MyProject");
     h.AssertCleanWorkspace("MyProject");
     AssertNewClone("MyProject", RefsInNewClone,
                    commit: "175420603e41cd0175e3c25581754726bd21cb96",
                    tree: "c962b51eb5397f1b98f662c9d43e6be13b7065f1");
 }