public void ItemsDiff_GetLines_Partial()
        {
            var defaultedItems  = IProjectFactory.Create(GetItems("X:Y,Z")).Items.ToImmutableArray();
            var removedItems    = ImmutableArray <IProjectItem> .Empty;
            var introducedItems = ImmutableArray <IProjectItem> .Empty;
            var changedItems    = ImmutableArray <IProjectItem> .Empty;
            var diff            = new ItemsDiff("X", defaultedItems, removedItems, introducedItems, changedItems);

            var lines         = diff.GetDiffLines();
            var expectedLines = new[]
            {
                "X items:",
                "- Y",
                "- Z",
                "",
            };

            Assert.Equal(expectedLines, lines);
        }
        public void ItemsDiff_GetLines()
        {
            var defaultedItems  = IProjectFactory.Create(GetItems("A:B,C")).Items.ToImmutableArray();
            var removedItems    = IProjectFactory.Create(GetItems("A:D,E")).Items.ToImmutableArray();
            var introducedItems = IProjectFactory.Create(GetItems("A:F,G")).Items.ToImmutableArray();
            var changedItems    = ImmutableArray <IProjectItem> .Empty;
            var diff            = new ItemsDiff("A", defaultedItems, removedItems, introducedItems, changedItems);

            var lines         = diff.GetDiffLines();
            var expectedLines = new[]
            {
                "A items:",
                "- B",
                "- C",
                "= D",
                "= E",
                "+ F",
                "+ G",
                "",
            };

            Assert.Equal(expectedLines, lines);
        }