示例#1
0
        public void Test_BackgroundTaskHelper_GetBackgroundTask_WithValidTask()
        {
            BackgroundTaskRegistration registeredTask = BackgroundTaskHelper.Register("TaskName", new TimeTrigger(15, true));

            if (registeredTask == null)
            {
                Assert.Inconclusive("Task failed to register");
            }

            Assert.IsNotNull(BackgroundTaskHelper.GetBackgroundTask("TaskName"));
        }
示例#2
0
 public void Test_BackgroundTaskHelper_GetBackgroundTask_NoTask()
 {
     Assert.IsNull(BackgroundTaskHelper.GetBackgroundTask("TaskName"));
 }