Ejemplo n.º 1
0
                public Fixture()
                {
                    InitialTree.Add("file6.txt", new GitObject()
                    {
                        Commit = "SHA"
                    });

                    Changeset.Changes = new[] {
                        /*0*/ FakeChange.Branch("$/Project/file6.txt"),                                                                         // Do not include, because it was there before.
                        /*1*/ FakeChange.Branch("$/Project/file7.txt"),                                                                         // Include, because it was not there before.
                        /*2*/ FakeChange.Edit("$/Project/file8.txt", TfsChangeType.Branch),                                                     // Include, because it's not just branched.
                        /*3*/ FakeChange.Rename("$/Project/file9.txt", from: "$/Project/oldfile9.txt", additionalChange: TfsChangeType.Branch), // Include, because it's not just branched.
                    };
                }
Ejemplo n.º 2
0
 public Fixture()
 {
     InitialTree.Add("dir1", new GitObject {
         Path = "dir1"
     });
     InitialTree.Add("dir1/file1.exe", new GitObject {
         Path = "dir1/file1.exe", Mode = "100755".ToFileMode()
     });
     InitialTree.Add("dir1/file4.txt", new GitObject {
         Path = "dir1/file4.txt", Mode = "100644".ToFileMode()
     });
     InitialTree.Add("dir2", new GitObject {
         Path = "dir2"
     });
     InitialTree.Add("dir2/file2.txt", new GitObject {
         Path = "dir2/file2.txt"
     });
     Changeset.Changes = new IChange[] {
         FakeChange.Add("$/Project/DIR2/file3.txt"),
         FakeChange.Delete("$/Project/DIR2/FILE2.txt"),
         FakeChange.Edit("$/Project/dir1/file1.exe"),
         FakeChange.Edit("$/Project/dir1/file4.txt"),
     };
 }