Пример #1
0
        public void When_Commit_a_similar_situation_to_a_previous_commit_Then_should_not_incread_blobs_nor_tree_blobs()
        {
            repoBuilder
            .EmptyRepo()
            .AddFile("a.txt")
            .Commit();

            repoBuilder
            .AddFile("b.txt")
            .Commit();

            Assert.Equal(2, repoBuilder.Git.Hd.Blobs.Count);
            Assert.Equal(2, repoBuilder.Git.Hd.Commits.Count);

            repoBuilder
            .DeleteFile("b.txt")
            .Commit("deleted b");

            Assert.Equal(2, repoBuilder.Git.Hd.Blobs.Count);
            Assert.Equal(3, repoBuilder.Git.Hd.Commits.Count);
        }