Exemplo n.º 1
0
        public void DataBoxGetEntriesByTag()
        {
            //Arrange
            var data  = new DataBox("test.dat");
            var entry = data.NewLinkEntry("entry", "description");

            entry.AddTag(data.NewTag("tag"));

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

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