public void SetIgnoreStateTest() { TagPool.SetMinReadedCount(2); TagPool.ClearTagPool(); List <TagInfo> tagList = TagPool.GetAllExistsTags(); Assert.IsTrue(tagList.Count == 0); TagInfo ti1 = new TagInfo("111", "01"); TagInfo ti2 = new TagInfo("111", "03"); TagPool.AddTag(ti1); TagPool.AddTag(ti2); TagPool.ResetExistsState(); tagList = TagPool.GetAllExistsTags(); Assert.IsTrue(tagList.Count == 0); TagPool.AddTag(ti1); TagPool.AddTag(ti2); TagPool.SetIgnoreMisreading(true); TagPool.ResetExistsState(); tagList = TagPool.GetAllExistsTags(); Assert.IsTrue(tagList.Count == 1); }