Ejemplo n.º 1
0
        ITestTask GivenAllocatedTestTask(int id, string taskName, bool finished, TestTaskStatuses status, bool isActive, string rule, int afterTask, TestStatuses testStatus = TestStatuses.NotRun)
        {
            // 20150904
            var task = new TestTask {
                // var task = new TestTask (TestTaskRuntimeTypes.Powershell) {
                Id           = id,
                Name         = taskName,
                TaskFinished = finished,
                IsActive     = isActive,
                TaskStatus   = status,
                Rule         = rule,
                AfterTask    = afterTask,
                WorkflowId   = _workflow.Id,
                TestRunId    = _testRun.Id
                               // 20150908
                ,
                TestStatus = testStatus
            };

            TaskPool.TasksForClients.Add(task);
            return(task);
        }
Ejemplo n.º 2
0
 // 20141020 squeezing a task to its proxy
 void ThenTestTaskPropertiesEqualTo(ITestTask expectedTask, ITestTask actualTask, TestTaskStatuses status)
 // void ThenTestTaskPropertiesEqualTo(ITestTask expectedTask, ITestTaskProxy actualTask, TestTaskStatuses status)
 {
     expectedTask.TaskStatus = status;
     ThenTestTaskPropertiesEqualTo(expectedTask, actualTask);
 }
Ejemplo n.º 3
0
 void ThenTestTaskStatusIs(ITestTask testTask, TestTaskStatuses status)
 {
     Assert.Equal(status, testTask.TaskStatus);
 }
 void ThenTestTaskStatusIs(ITestTask testTask, TestTaskStatuses status)
 {
     Assert.Equal(status, testTask.TaskStatus);
 }