using AUCMA.STORE.Common; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Threading.Tasks; namespace AUCMA.STORE.UnitTest { [TestClass] public class UnitTest7 { [TestMethod] public void TestMethod1() { Random random = new Random(); var info = random.Next(100000000,999999999).ToString(); /* for(int i = 0;i < 5; i++) { TaskDictionary.writeTask(Convert.ToInt32(DateTime.Now.ToString("MMddHHmmss")), new Entity.DTO.PlcDirectiveDTO(1, 1)); Task.Delay(2000); } for (int i = 0; i < 5; i++) { Console.WriteLine("删除之前条数:" + TaskDictionary.dicCount()); var taskKey = TaskDictionary.getTask().Keys; Console.WriteLine("获取key:"+taskKey); Console.WriteLine(TaskDictionary.removeTask(Convert.ToInt32(taskKey))); Console.WriteLine("删除之后条数:"+TaskDictionary.dicCount()); }*/ } } }