Example #1
0
        public void DataBoxGetEntriesByLinkTag()
        {
            //Arrange
            var data  = new DataBox("test.dat");
            var entry = data.NewLinkEntry("entry", "description");

            entry.AddLink("link", "test.ca").AddTag(data.NewTag("tag", "link"));

            //Act
            var entries = data.GetEntriesByLinkTag(data.GetTagsByName("tag", "link")[0]);

            //Assert
            Assert.AreEqual(entry, entries[0]);
        }