Inheritance: MonoDevelop.Ide.Gui.PadContent, ITestProgressMonitor
 public TestSession(UnitTest test, MonoDevelop.Projects.ExecutionContext context, TestResultsPad resultsPad, CancellationTokenSource cs)
 {
     this.test               = test;
     this.context            = new Projects.ExecutionContext(context.ExecutionHandler, new CustomConsoleFactory(context.ConsoleFactory, cs), context.ExecutionTarget);
     CancellationTokenSource = cs;
     this.monitor            = new TestMonitor(resultsPad, CancellationTokenSource);
     this.resultsPad         = resultsPad;
     resultsPad.InitializeTestRun(test, cs);
 }
		internal TestContext (ITestProgressMonitor monitor, TestResultsPad resultsPad, MonoDevelop.Projects.ExecutionContext executionContext, DateTime testDate)
		{
			this.monitor = monitor;
			if (executionContext == null)
				executionContext = new ExecutionContext (Runtime.ProcessService.DefaultExecutionHandler, IdeApp.Workbench.ProgressMonitors.ConsoleFactory, null);
			this.executionContext = executionContext;
			// Round to seconds
			this.testDate = new DateTime ((testDate.Ticks / TimeSpan.TicksPerSecond) * TimeSpan.TicksPerSecond);
		}
Exemple #3
0
 internal TestContext(ITestProgressMonitor monitor, TestResultsPad resultsPad, MonoDevelop.Projects.ExecutionContext executionContext, DateTime testDate)
 {
     this.monitor = monitor;
     if (executionContext == null)
     {
         executionContext = new ExecutionContext(Runtime.ProcessService.DefaultExecutionHandler, IdeApp.Workbench.ProgressMonitors.ConsoleFactory, null);
     }
     this.executionContext = executionContext;
     // Round to seconds
     this.testDate = new DateTime((testDate.Ticks / TimeSpan.TicksPerSecond) * TimeSpan.TicksPerSecond);
 }
 public TestMonitor(TestResultsPad pad, CancellationTokenSource cs)
 {
     this.pad     = pad;
     this.monitor = pad;
 }
		public TestSession (UnitTest test, MonoDevelop.Projects.ExecutionContext context, TestResultsPad resultsPad, CancellationTokenSource cs)
		{
			this.test = test;
			if (context != null)
				this.context = new Projects.ExecutionContext (context.ExecutionHandler, new CustomConsoleFactory (context.ConsoleFactory, cs), context.ExecutionTarget);
			CancellationTokenSource = cs;
			this.monitor = new TestMonitor (resultsPad, CancellationTokenSource);
			this.resultsPad = resultsPad;
			resultsPad.InitializeTestRun (test, cs);
			Task = new Task ((Action)RunTests);
		}
		public TestMonitor (TestResultsPad pad, CancellationTokenSource cs)
		{
			this.pad = pad;
			this.monitor = pad;
		}