/// <summary> /// Executes the tests in an assembly. /// </summary> /// <param name="listener">An ITestEventHandler that receives progress notices</param> /// <param name="filter">A filter that controls which tests are executed</param> /// <returns>An Xml string representing the result</returns> public string Run(ITestEventHandler listener, TestFilter filter) { CallbackHandler handler = new RunTestsCallbackHandler(listener); log.Info("Running {0} - see separate log file", Path.GetFileName(_testAssemblyPath)); CreateObject(RUN_ACTION, _frameworkController, filter.Text, handler); return(handler.Result); }
/// <summary> /// Executes the tests in an assembly. /// </summary> /// <param name="listener">An ITestEventHandler that receives progress notices</param> /// <param name="filter">A filter that controls which tests are executed</param> /// <returns>An Xml string representing the result</returns> public string Run(ITestEventListener listener, TestFilter filter) { CallbackHandler handler = new RunTestsCallbackHandler(listener); log.Info("Running {0} - see separate log file", Path.GetFileName(_testAssemblyPath)); CreateObject(RUN_ACTION, _frameworkController, filter.Text, handler); return handler.Result; }