コード例 #1
0
        public void EmptyNullStat()
        {
            var bookmarks = new Bookmarks();
            var stats     = bookmarks.GetStats(101);
            var stats_2   = bookmarks.GetStats(102);

            Assert.AreEqual(0, stats.Count);
            Assert.AreSame(stats, stats_2);
        }
コード例 #2
0
        public void BasicStatTestNonGid()
        {
            var bookmarks = new Bookmarks();

            bookmarks.GroupAdd(200, new Group {
                Id = 200, Name = "200g", Pid = 0
            });
            bookmarks.LinkAdd(200, new LinkItem {
                Title = "First", Target = "Target!"
            });
            var stats = bookmarks.GetStats(2000);

            Assert.AreEqual(0, stats.Count);
            Assert.AreEqual("", stats.Name);
        }