Esempio n. 1
0
        public void FindCommitTagsReturnsCorrectTag()
        {
            var commitA = new Commit("commit1");
            var commitB = new Commit("commit2");
            var tags    = new HashSet <Tag>
            {
                new("tag1", commitA),
                new("tag1", commitB),
            };
            var container = new TagContainer(tags);

            container.Count().Should().Be(2);
            var foundA = container.FindCommitTags(commitA);

            foundA.Should().ContainSingle();
            foundA.Should().Contain(new Tag("tag1", commitA));
        }