예제 #1
0
        public void Execute()
        {
            ScenarioItem a = toExec.ElementAt(execIndex);

            if (null != a && null != a.Item2)
            {
                a.Item2();
            }
        }
예제 #2
0
 public void EndRunCleanup()
 {
     lastExeIndex = -1;
     execIndex    = -1;
     for (int i = 0; i < toExec.Count; ++i)
     {
         ScenarioItem a = toExec.ElementAt(i);
         if (null != a && null != a.Item4)
         {
             a.Item4();
         }
     }
     toExec.Clear();
 }
예제 #3
0
        public void SetUp()
        {
            if (lastExeIndex == execIndex)
            {
                ++execIndex;
            }
            ScenarioItem a = toExec.ElementAt(execIndex);

            if (null != a && null != a.Item1)
            {
                a.Item1();
            }
            lastExeIndex = execIndex;
        }
예제 #4
0
        public void CleanUp()
        {
            ScenarioItem a = toExec.ElementAt(execIndex);

            if (null != a && null != a.Item3)
            {
                a.Item3();
            }

            //if (execIndex >= toExec.Count)
            //{
            //    execIndex = -1;
            //    lastExeIndex = -1;
            //}
        }