public void GlobalOptionsPlanTest(string type) { string[] args = GetArgs("plan", type); PlanOptions opt = TestParseArguments <PlanOptions>(args); CheckFields(opt); }
public void LoadOptions(PlanOptions options) { ignoreAffinitiesChkBox.Checked = options.IgnoreAffinities; affinitiesModeCmbBox.SelectedIndex = (int)options.AffinitiesMode; animeGenChkBox.Checked = options.AnimateGeneration; fillModeCmbBox.SelectedIndex = (int)options.FillMode; animationSpeedTrkBar.Value = options.AnimationSpeed; debugModeChk.Checked = options.DebugMode; }
public void RunActionTest() { var opt = new PlanOptions(); var act = new ActionPlan(); int status = act.Run(opt); int lastRunStatus = act.GetLastRunStatus(); Assert.AreEqual(status, lastRunStatus, "Status need to be the same!!!"); }