/// <summary> /// Construct a RunTestsAction and run all tests in the loaded TestSuite. /// </summary> /// <param name="controller">A FrameworkController holding the TestSuite to run</param> /// <param name="filter">A string containing the XML representation of the filter to use</param> /// <param name="handler">A callback handler used to report results</param> public RunTestsAction(MyCustomFrameworkController controller, string filter, object handler) { //Debugger.Launch(); controller.RunTests((ICallbackEventHandler)handler, filter); }
/// <summary> /// Construct a StopRunAction and stop any ongoing run. If no /// run is in process, no error is raised. /// </summary> /// <param name="controller">The FrameworkController for which a run is to be stopped.</param> /// <param name="force">True the stop should be forced, false for a cooperative stop.</param> /// <param name="handler">>A callback handler used to report results</param> /// <remarks>A forced stop will cause threads and processes to be killed as needed.</remarks> public StopRunAction(MyCustomFrameworkController controller, bool force, object handler) { controller.StopRun((ICallbackEventHandler)handler, force); }
/// <summary> /// Construct a RunAsyncAction and run all tests in the loaded TestSuite. /// </summary> /// <param name="controller">A FrameworkController holding the TestSuite to run</param> /// <param name="filter">A string containing the XML representation of the filter to use</param> /// <param name="handler">A callback handler used to report results</param> public RunAsyncAction(MyCustomFrameworkController controller, string filter, object handler) { controller.RunAsync((ICallbackEventHandler)handler, filter); }
/// <summary> /// Construct a CountsTestAction and perform the count of test cases. /// </summary> /// <param name="controller">A FrameworkController holding the TestSuite whose cases are to be counted</param> /// <param name="filter">A string containing the XML representation of the filter to use</param> /// <param name="handler">A callback handler used to report results</param> public CountTestsAction(MyCustomFrameworkController controller, string filter, object handler) { controller.CountTests((ICallbackEventHandler)handler, filter); }
/// <summary> /// LoadTestsAction loads the tests in an assembly. /// </summary> /// <param name="controller">The controller.</param> /// <param name="handler">The callback handler.</param> public LoadTestsAction(MyCustomFrameworkController controller, object handler) { controller.LoadTests((ICallbackEventHandler)handler); }