示例#1
0
        public void TestUnreadList()
        {
            //Contains "Path"
            UnreadList unreadList = new UnreadList("Unread.txt");

            unreadList.Add("Path1", "Hash1");
            unreadList.Add("Path2", "Hash2");
            unreadList.Write("Unread1.txt");

            unreadList.Remove("Path1");
            unreadList.Remove("Path2");

            Assert.AreEqual("Path", unreadList.Messages.First().Key);
        }