public void RestartAgentNotRunningTest() { //Arrange ActAgentManipulation actAgentManipulation = new ActAgentManipulation(); actAgentManipulation.GetOrCreateInputParam(ActAgentManipulation.Fields.AgentManipulationActionType, "RestartAgent"); actAgentManipulation.Active = true; AddApplicationAgent(); mGR.SetCurrentActivityAgent(); //Act mGR.RunAction(actAgentManipulation); //Assert Assert.AreEqual(eRunStatus.Passed, actAgentManipulation.Status, "Action Status"); Assert.IsTrue(actAgentManipulation.ExInfo.Contains("Agent is not running")); }
public void RestartAgentNullTest() { //Arrange ActAgentManipulation actAgentManipulation = new ActAgentManipulation(); actAgentManipulation.GetOrCreateInputParam(ActAgentManipulation.Fields.AgentManipulationActionType, "RestartAgent"); actAgentManipulation.Active = true; Activity activity = new Activity(); mBF.Activities.Add(activity); mBF.CurrentActivity = activity; //Act mGR.RunAction(actAgentManipulation); //Assert Assert.AreEqual(eRunStatus.Failed, actAgentManipulation.Status, "Action Status"); }
public ActAgentManipulationEditPage(ActAgentManipulation act) { InitializeComponent(); mAct = act; AgentManipulationComboBox.Init(mAct.GetOrCreateInputParam(ActAgentManipulation.Fields.AgentManipulationActionType), typeof(ActAgentManipulation.eAgenTManipulationActionType)); }