Example #1
0
		void UpdateTestResults(MSTestResults testResults)
		{
			foreach (TestResult result in testResults) {
				OnTestFinished(this, new TestFinishedEventArgs(result));
			}
			OnAllTestsFinished(this, new EventArgs());
		}
Example #2
0
		public void Join()
		{
			if (File.Exists(ResultsFileName)) {
				var testResults = new MSTestResults(ResultsFileName);
				UpdateTestResults(testResults);
			}
		}
Example #3
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);
			}
		}
 void CreateMSTestResults(string xml)
 {
     using (var reader = new XmlTextReader(new StringReader(xml))) {
         testResults = new MSTestResults(reader);
     }
 }
Example #5
0
		void UpdateTestResults(MSTestResults testResults)
		{
			foreach (TestResult result in testResults) {
				OnTestFinished(new TestFinishedEventArgs(result));
			}
		}
		void CreateMSTestResults(string xml)
		{
			using (var reader = new XmlTextReader(new StringReader(xml))) {
				testResults = new MSTestResults(reader);
			}
		}
		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);
			}
		}