示例#1
0
        public void CreateTest()
        {
            Task task = TaskWrapper.Create("testTask", "notepad.exe", null, null, DateTime.Now, 1);

            Assert.IsNotNull(task);
            Task found = TaskWrapper.Find("testTask");

            Assert.IsNotNull(found);
            found.Run();
            if (found.State == TaskState.Running)
            {
                found.Stop();
            }
            TaskWrapper.Delete("testTask");
            found = TaskWrapper.Find("testTask");
            Assert.IsNull(found);
        }