Пример #1
0
        public void Should_get_all_revisions()
        {
            revList = new GitRevisionGraph(rev_list_1.ToStream());

            Assert.Equal(8, revList.RevisionCount);
            for (int i = 1; i <= 8; i++)
            {
                var expected = new String(Convert.ToChar(i.ToString()), 5);
                Assert.Equal(expected, revList.GetRevisionByNumber(i));
            }
            Assert.Null(revList.GetRevisionByNumber(9));
        }
Пример #2
0
        public string GetRevisionByNumber(int number)
        {
            CreateRevisionGraph();

            return(revisionGraph.GetRevisionByNumber(number));
        }