public static void executeXRuleInSelectedTreeViewNode(TreeView tvXRules, Action <bool, object> executionResult, Action onComplete) { var methodsToExecute = UnitTestSupport.getMethodsToExecuteFromSelectedTreeViewNode(tvXRules); executeXRuleMethods(methodsToExecute, executionResult, onComplete); /*if (tvXRules.SelectedNode != null && tvXRules.SelectedNode.Tag != null) * { * if (tvXRules.SelectedNode.Tag is ILoadedXRule) * executeXRuleMethods((ILoadedXRule)tvXRules.SelectedNode.Tag, executionResult, onComplete); * else if (tvXRules.SelectedNode.Tag is MethodInfo) * executeXRuleMethod((MethodInfo)tvXRules.SelectedNode.Tag, executionResult); * }*/ }
/*public static void clearFlowLayoutPanel(FlowLayoutPanel flowLayoutPanel) * { * flowLayoutPanel.ts_Clear(); * //flowLayoutPanel.invokeOnThread(() => flowLayoutPanel.Controls.Clear()); * }*/ public static IEnumerable <ILoadedXRule> mapUnitTestToXRules(IEnumerable <string> assembliesWithUnitTests) { return(UnitTestSupport.getXRulesWithUnitTests_FromAssemblies(assembliesWithUnitTests)); }