public void WidgetPerformUpdate(Action <NCUpdateResult> completionHandler) { runner = new ConsoleRunner(); runner.Add(System.Reflection.Assembly.GetExecutingAssembly()); System.Threading.ThreadPool.QueueUserWorkItem((v) => { runner.LoadSync(); BeginInvokeOnMainThread(() => { runner.AutoStart = true; // There's no UI for today extensions (yet), so unless we autostart the tests, there's no way to run them when running from the IDE. runner.AutoRun(); }); }); completionHandler(NCUpdateResult.NewData); }
public void WidgetPerformUpdate(Action <NCUpdateResult> completionHandler) { runner = new ConsoleRunner(); runner.Add(System.Reflection.Assembly.GetExecutingAssembly()); runner.Filter = new NotFilter(new CategoryExpression("MobileNotWorking,NotOnMac,NotWorking,ValueAdd,CAS,InetAccess,NotWorkingLinqInterpreter").Filter); System.Threading.ThreadPool.QueueUserWorkItem((v) => { runner.LoadSync(); BeginInvokeOnMainThread(() => { runner.AutoStart = true; // There's no UI for today extensions (yet), so unless we autostart the tests, there's no way to run them when running from the IDE. runner.AutoRun(); }); }); completionHandler(NCUpdateResult.NewData); }