APD.IntegrationTests.VCS.Git.AccessGitObjectsTest.access_git_objects C# (CSharp) Метод

access_git_objects() приватный Метод

private access_git_objects ( ) : void
Результат void
        public void access_git_objects()
        {
            // standard access of git objects, supported by gitsharp.core
            using (var repo = new Repository(@"L:\Documents and Settings\All Users\Application Data\Smeedee_dummy"))
            {
                Assert.IsTrue(repo.Get<Commit>("master").IsCommit);
                (repo.Get<Branch>("master")).ShouldNotBeNull();
                (repo.Get<Branch>("master").Target).ShouldNotBeNull();
                Assert.IsTrue(repo.Get<Commit>("HEAD^^").IsCommit);
                /*
                Assert.IsTrue(repo.Get<Tag>("A").IsTag);
                Assert.IsTrue(repo.Get<Branch>("a").Target.IsCommit);
                Assert.IsTrue(repo.Get<Commit>("a").IsCommit);
                Assert.IsTrue(repo.Get<Commit>("prefix/a").IsCommit);
                Assert.IsTrue(repo.Get<Commit>("68cb1f232964f3cd698afc1dafe583937203c587").IsCommit);
                Assert.NotNull(repo.Get<Blob>("a")); // <--- returns a blob containing the raw representation of tree "a" on master
                Assert.IsTrue(repo.Get<Tree>("a").IsTree); // <--- there is a directory "a" on master
                Assert.IsTrue(repo.Get<Tree>("a/").IsTree);
                Assert.NotNull(repo.Get<Blob>("a/a1"));
                Assert.NotNull(repo.Get<Leaf>("a/a1"));*/
            }
        }
AccessGitObjectsTest