// private TestResult ExecuteSteps(TestStep steps, bool reverseOrder) { if (steps != null) { if (reverseOrder) { for (int i = steps.GetInvocationList().Length - 1; i >= 0; i--) { TestResult result = InvokeStepInternal((TestStep)steps.GetInvocationList()[i]); if (result != TestResult.Pass) { return(result); } } } else { for (int i = 0; i < steps.GetInvocationList().Length; i++) { TestResult result = InvokeStepInternal((TestStep)steps.GetInvocationList()[i]); if (result != TestResult.Pass) { return(result); } } } } return(TestResult.Pass); }