Exemple #1
0
        public static void TaskStatus13()
        {
            TestParameters parameters = new TestParameters(TestAction.FailedTask)
            {
                CreateChildTask      = true,
                FinalTaskStatus      = TaskStatus.Faulted,
                FinalChildTaskStatus = TaskStatus.RanToCompletion,
            };
            TaskStatusTest test = new TaskStatusTest(parameters);

            test.RealRun();
        }
        public static void TaskStatus17()
        {
            TestParameters parameters = new TestParameters(TestAction.CancelTaskAndAcknowledge)
            {
                ChildTaskCreationOptions = MyTaskCreationOptions.RespectParentCancellation,
                CreateChildTask          = true,
                FinalTaskStatus          = TaskStatus.Canceled,
                FinalChildTaskStatus     = TaskStatus.Canceled,
            };
            TaskStatusTest test = new TaskStatusTest(parameters);

            test.RealRun();
        }
        public static void TaskStatus16()
        {
            TestParameters parameters = new TestParameters(TestAction.CancelTaskAndAcknowledge)
            {
                ChildTaskCreationOptions = MyTaskCreationOptions.AttachedToParent,
                CreateChildTask          = true,
                FinalTaskStatus          = TaskStatus.Canceled,
                FinalChildTaskStatus     = TaskStatus.RanToCompletion,
            };
            TaskStatusTest test = new TaskStatusTest(parameters);

            test.RealRun();
        }
        public static void TaskStatus14()
        {
            TestParameters parameters = new TestParameters(TestAction.FailedChildTask)
            {
                ChildTaskCreationOptions = MyTaskCreationOptions.AttachedToParent,
                CreateChildTask          = true,
                FinalTaskStatus          = TaskStatus.Faulted,
                FinalChildTaskStatus     = TaskStatus.Faulted,
            };
            TaskStatusTest test = new TaskStatusTest(parameters);

            test.RealRun();
        }
Exemple #5
0
 public static void TaskStatus16()
 {
     TestParameters parameters = new TestParameters(TestAction.CancelTaskAndAcknowledge)
     {
         ChildTaskCreationOptions = MyTaskCreationOptions.AttachedToParent,
         CreateChildTask = true,
         FinalTaskStatus = TaskStatus.Canceled,
         FinalChildTaskStatus = TaskStatus.RanToCompletion,
     };
     TaskStatusTest test = new TaskStatusTest(parameters);
     test.RealRun();
 }
Exemple #6
0
 public static void TaskStatus17()
 {
     TestParameters parameters = new TestParameters(TestAction.CancelTaskAndAcknowledge)
     {
         ChildTaskCreationOptions = MyTaskCreationOptions.RespectParentCancellation,
         CreateChildTask = true,
         FinalTaskStatus = TaskStatus.Canceled,
         FinalChildTaskStatus = TaskStatus.Canceled,
     };
     TaskStatusTest test = new TaskStatusTest(parameters);
     test.RealRun();
 }
Exemple #7
0
 public static void TaskStatus14()
 {
     TestParameters parameters = new TestParameters(TestAction.FailedChildTask)
     {
         ChildTaskCreationOptions = MyTaskCreationOptions.AttachedToParent,
         CreateChildTask = true,
         FinalTaskStatus = TaskStatus.Faulted,
         FinalChildTaskStatus = TaskStatus.Faulted,
     };
     TaskStatusTest test = new TaskStatusTest(parameters);
     test.RealRun();
 }
Exemple #8
0
 public static void TaskStatus15()
 {
     TestParameters parameters = new TestParameters(TestAction.FailedChildTask)
     {
         CreateChildTask = true,
         FinalTaskStatus = TaskStatus.RanToCompletion,
         FinalChildTaskStatus = TaskStatus.Faulted,
     };
     TaskStatusTest test = new TaskStatusTest(parameters);
     test.RealRun();
 }
Exemple #9
0
 public static void TaskStatus8()
 {
     TestParameters parameters = new TestParameters(TestAction.CancelTask)
     {
         FinalTaskStatus = TaskStatus.RanToCompletion,
     };
     TaskStatusTest test = new TaskStatusTest(parameters);
     test.RealRun();
 }
Exemple #10
0
 public static void TaskStatus11()
 {
     TestParameters parameters = new TestParameters(TestAction.FailedTask)
     {
         FinalTaskStatus = TaskStatus.Faulted,
     };
     TaskStatusTest test = new TaskStatusTest(parameters);
     test.RealRun();
 }
Exemple #11
0
 public static void TaskStatus7()
 {
     TestParameters parameters = new TestParameters(TestAction.CancelScheduledTask)
     {
         FinalTaskStatus = TaskStatus.Canceled,
     };
     TaskStatusTest test = new TaskStatusTest(parameters);
     test.RealRun();
 }
Exemple #12
0
 public static void TaskStatus5()
 {
     TestParameters parameters = new TestParameters(TestAction.FailedTask)
     {
         IsPromise = true,
         FinalPromiseStatus = TaskStatus.Faulted,
     };
     TaskStatusTest test = new TaskStatusTest(parameters);
     test.RealRun();
 }
Exemple #13
0
 public static void TaskStatus4()
 {
     TestParameters parameters = new TestParameters(TestAction.CompletedTask)
     {
         IsPromise = true,
         FinalPromiseStatus = TaskStatus.RanToCompletion,
     };
     TaskStatusTest test = new TaskStatusTest(parameters);
     test.RealRun();
 }
Exemple #14
0
 public static void TaskStatus1()
 {
     TestParameters parameters = new TestParameters(TestAction.None)
     {
         IsPromise = true,
         FinalPromiseStatus = TaskStatus.WaitingForActivation,
     };
     TaskStatusTest test = new TaskStatusTest(parameters);
     test.RealRun();
 }
Exemple #15
0
 public static void TaskStatus0()
 {
     TestParameters parameters = new TestParameters(TestAction.None)
     {
         FinalTaskStatus = TaskStatus.Created,
     };
     TaskStatusTest test = new TaskStatusTest(parameters);
     test.RealRun();
 }