Inheritance: ITestProgressMonitor
コード例 #1
0
 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);
 }
コード例 #2
0
		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);
		}