public UnitTestAnimations(Lifetime lifetime, IUnitTestSessionManager sessionManager, IUnitTestResultManager resultsManager, Agent agent, IThreading threading) { this.resultsManager = resultsManager; this.agent = agent; this.threading = threading; var testSessionLifetimes = new Dictionary <IUnitTestSessionView, LifetimeDefinition>(); sessionManager.SessionCreated.Advise(lifetime, sessionView => { var sessionLifetimeDefinition = Lifetimes.Define(lifetime, "Clippy::TestSession"); testSessionLifetimes.Add(sessionView, sessionLifetimeDefinition); SubscribeToSessionLaunch(sessionLifetimeDefinition.Lifetime, sessionView.Session); }); sessionManager.SessionClosed.Advise(lifetime, sessionView => { LifetimeDefinition sessionLifetimeDefinition; if (testSessionLifetimes.TryGetValue(sessionView, out sessionLifetimeDefinition)) { sessionLifetimeDefinition.Terminate(); testSessionLifetimes.Remove(sessionView); } }); }
public ITaskRunnerHostController CreateHostController(ISolution solution, IUnitTestSessionManager sessionManager, IUnitTestLaunch launch, string remotingAddress) { var providers = solution.GetComponent <UnitTestProviders>(); launch.EnsureSilverlightPlatformSupport(providers); return(CreateWrappedHostController(solution, sessionManager, launch, remotingAddress)); }
public ExtendedDebugTaskRunnerHostController(IUnitTestSessionManager sessionManager, util::JetBrains.Util.Lazy.Lazy <IVsDebugger2> debugger2, DTE dte, IThreading threading, IUnitTestLaunch launch, string remotingAddress) : base(sessionManager, debugger2, dte, threading, launch, remotingAddress) { }
protected override ITaskRunnerHostController CreateWrappedHostController(ISolution solution, IUnitTestSessionManager sessionManager, IUnitTestLaunch launch, string remotingAddress) { return(new ExtendedDebugTaskRunnerHostController(sessionManager, debugger2, dte, threading, launch, remotingAddress)); }
protected ITaskRunnerHostController CreateTaskRunnerHostController(IUnitTestLaunchManager launchManager, IUnitTestResultManager resultManager, IUnitTestAgentManager agentManager, IUnitTestLaunch launch, IUnitTestSessionManager sessionManager, int port) { return new ProcessTaskRunnerHostController(port, sessionManager, launchManager, resultManager, agentManager, launch, Logger.GetLogger(typeof(UnitTestTaskRunnerTestBase))); }
protected ITaskRunnerHostController CreateTaskRunnerHostController(IUnitTestLaunchManager launchManager, IUnitTestResultManager resultManager, IUnitTestAgentManager agentManager, IUnitTestLaunch launch, IUnitTestSessionManager sessionManager, int port) { return(new ProcessTaskRunnerHostController(port, sessionManager, launchManager, resultManager, agentManager, launch, Logger.GetLogger(typeof(UnitTestTaskRunnerTestBase)))); }
protected virtual ITaskRunnerHostController CreateWrappedHostController(ISolution solution, IUnitTestSessionManager sessionManager, IUnitTestLaunch launch, string remotingAddress) { return(WrappedHostProvider.CreateHostController(solution, sessionManager, launch, remotingAddress)); }
public ExtendedDebugTaskRunnerHostController(IUnitTestSessionManager sessionManager, util::JetBrains.Util.Lazy.Lazy<IVsDebugger2> debugger2, DTE dte, IThreading threading, IUnitTestLaunch launch, string remotingAddress) : base(sessionManager, debugger2, dte, threading, launch, remotingAddress) { }