Exemplo n.º 1
0
		void ProcessRunnerExited(object source, EventArgs e)
		{
			// Read all tests.
			if (FileExists(resultsFileName)) {
				var testResults = new MSTestResults(resultsFileName);
				var workbench = new UnitTestWorkbench();
				workbench.SafeThreadAsyncCall(() => UpdateTestResults(testResults));
			} else {
				messageService.ShowFormattedErrorMessage("Unable to find test results file: '{0}'.", resultsFileName);
				OnAllTestsFinished(source, e);
			}
		}
Exemplo n.º 2
0
 void ProcessRunnerExited(object source, EventArgs e)
 {
     // Read all tests.
     if (FileExists(resultsFileName))
     {
         var testResults = new MSTestResults(resultsFileName);
         var workbench   = new UnitTestWorkbench();
         workbench.SafeThreadAsyncCall(() => UpdateTestResults(testResults));
     }
     else
     {
         messageService.ShowFormattedErrorMessage("Unable to find test results file: '{0}'.", resultsFileName);
         OnAllTestsFinished(source, e);
     }
 }
Exemplo n.º 3
0
        void DebugStopped(object source, EventArgs e)
        {
            debugger.DebugStopped -= DebugStopped;

            if (File.Exists(resultsFileName))
            {
                var testResults = new MSTestResults(resultsFileName);
                var workbench   = new UnitTestWorkbench();
                workbench.SafeThreadAsyncCall(() => UpdateTestResults(testResults));
            }
            else
            {
                messageService.ShowFormattedErrorMessage("Unable to find test results file: '{0}'.", resultsFileName);
                OnAllTestsFinished(source, e);
            }
        }
Exemplo n.º 4
0
		void DebugStopped(object source, EventArgs e)
		{
			debugger.DebugStopped -= DebugStopped;
			
			if (File.Exists(resultsFileName)) {
				var testResults = new MSTestResults(resultsFileName);
				var workbench = new UnitTestWorkbench();
				workbench.SafeThreadAsyncCall(() => UpdateTestResults(testResults));
			} else {
				messageService.ShowFormattedErrorMessage("Unable to find test results file: '{0}'.", resultsFileName);
				OnAllTestsFinished(source, e);
			}
		}