Esempio n. 1
0
        public void GlobalOptionsPlanTest(string type)
        {
            string[]    args = GetArgs("plan", type);
            PlanOptions opt  = TestParseArguments <PlanOptions>(args);

            CheckFields(opt);
        }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
        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!!!");
        }