CountTests() public method

Counts the number of test cases in the loaded TestSuite
public CountTests ( string filter ) : int
filter string A string containing the XML representation of the filter to use
return int
示例#1
0
 /// <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(FrameworkController controller, string filter, object handler)
 {
     controller.CountTests((ICallbackEventHandler)handler, filter);
 }
示例#2
0
 /// <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(FrameworkController controller, string filter, object handler) 
 {
     controller.CountTests((ICallbackEventHandler)handler, filter);
 }