public void ProcessWithIncorrectVertexType()
 {
     var processor = new InsertVertexProcessor();
     using (var info = new ScheduleExecutionInfo())
     {
         var state = processor.Process(new StartVertex(1), info);
         Assert.AreEqual(ScheduleExecutionState.IncorrectProcessorForVertex, state);
     }
 }
 public void Process()
 {
     var processor = new InsertVertexProcessor();
     using (var info = new ScheduleExecutionInfo())
     {
         var state = processor.Process(new InsertVertex(1), info);
         Assert.AreEqual(ScheduleExecutionState.Executing, state);
     }
 }
        public void Process()
        {
            var processor = new InsertVertexProcessor();

            using (var info = new ScheduleExecutionInfo())
            {
                var state = processor.Process(new InsertVertex(1), info);
                Assert.AreEqual(ScheduleExecutionState.Executing, state);
            }
        }
        public void ProcessWithIncorrectVertexType()
        {
            var processor = new InsertVertexProcessor();

            using (var info = new ScheduleExecutionInfo())
            {
                var state = processor.Process(new StartVertex(1), info);
                Assert.AreEqual(ScheduleExecutionState.IncorrectProcessorForVertex, state);
            }
        }
        public void ProcessWithCancellation()
        {
            using (var info = new ScheduleExecutionInfo())
            {
                info.CancelScheduleExecution();

                var processor = new InsertVertexProcessor();
                var state = processor.Process(new InsertVertex(1), info);
                Assert.AreEqual(ScheduleExecutionState.Canceled, state);
            }
        }
        public void ProcessWithCancellation()
        {
            using (var info = new ScheduleExecutionInfo())
            {
                info.CancelScheduleExecution();

                var processor = new InsertVertexProcessor();
                var state     = processor.Process(new InsertVertex(1), info);
                Assert.AreEqual(ScheduleExecutionState.Canceled, state);
            }
        }