public void Execute() { ScenarioItem a = toExec.ElementAt(execIndex); if (null != a && null != a.Item2) { a.Item2(); } }
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(); }
public void SetUp() { if (lastExeIndex == execIndex) { ++execIndex; } ScenarioItem a = toExec.ElementAt(execIndex); if (null != a && null != a.Item1) { a.Item1(); } lastExeIndex = execIndex; }
public void CleanUp() { ScenarioItem a = toExec.ElementAt(execIndex); if (null != a && null != a.Item3) { a.Item3(); } //if (execIndex >= toExec.Count) //{ // execIndex = -1; // lastExeIndex = -1; //} }