public void ProcessWithIncorrectVertexType() { var processor = new EndVertexProcessor(); using (var info = new ScheduleExecutionInfo()) { var state = processor.Process(new StartVertex(1), info); Assert.AreEqual(ScheduleExecutionState.IncorrectProcessorForVertex, state); } }
public void Process() { var processor = new EndVertexProcessor(); using (var info = new ScheduleExecutionInfo()) { var state = processor.Process(new EndVertex(1), info); Assert.AreEqual(ScheduleExecutionState.Completed, state); } }
public void VertexTypeToProcess() { var processor = new EndVertexProcessor(); Assert.AreEqual(typeof(EndVertex), processor.VertexTypeToProcess); }