/// <summary> /// Creates and runs an in-memory testing process. /// </summary> private void CreateAndRunInMemoryTestingProcess() { TestingProcess testingProcess = TestingProcess.Create(this.Configuration); Console.WriteLine($"... Created '1' testing task."); // Runs the testing process. testingProcess.Run(); // Get and merge the test report. TestReport testReport = testingProcess.GetTestReport(); if (testReport != null) { this.MergeTestReport(testReport, 0); } }
/// <summary> /// Creates and runs an in-memory testing process. /// </summary> /// <returns>The number of bugs found.</returns> private int CreateAndRunInMemoryTestingProcess() { TestingProcess testingProcess = TestingProcess.Create(this.Configuration); Console.WriteLine($"... Created '1' testing task (process:{Process.GetCurrentProcess().Id})."); // Runs the testing process. int bugs = testingProcess.Run(); // Get and merge the test report. TestReport testReport = testingProcess.GetTestReport(); if (testReport != null) { this.MergeTestReport(testReport, 0); } return(bugs); }