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")); }
public void Test_BackgroundTaskHelper_GetBackgroundTask_NoTask() { Assert.IsNull(BackgroundTaskHelper.GetBackgroundTask("TaskName")); }