Beispiel #1
0
        public void EntriesWithNoEntriesInParentGroup_StillCreatesGroups()
        {
            var entries = new List <TextResource>
            {
                new TextResource("A.B.D", "A.B.D"),
                new TextResource("A", "A"),
                new TextResource("A.B.D.E", "A.B.D.E"),
            };

            var group = _uut.CreateGroup(entries);

            var lowestElement = group.SubGroups.First().SubGroups.First().SubGroups.First();

            Assert.That(lowestElement.CommonKey, Is.EqualTo("A.B.D."));
            Assert.That(lowestElement.Entries.First().Value, Is.EqualTo("A.B.D.E"));
        }