public void TagPoolResetTagStateTest() { TagPool.ClearTagPool(); string epc = "300833B2DDD906C001010101"; TagInfo ti01 = new TagInfo(epc, "01"); ti01.port = common_port_9601; TagPool.AddTag(ti01); TagPool.AddTag(ti01); TagInfo tiTemp = TagPool.GetSpecifiedTag(epc); Assert.IsTrue(TagPool.GetMaxReadCountTag(tiTemp) == 2); TagPool.UpdateTagInfo(tiTemp, ti01); Assert.IsTrue(TagPool.GetMaxReadCountTag(tiTemp) == 3); TagPool.ResetReadCountDefault(tiTemp); TagPool.UpdateTagInfo(tiTemp, null); Assert.IsTrue(TagPool.GetMaxReadCountTag(tiTemp) == 0); }