OptionPageGrid CreateVsiOptions() { var vsiOptions = OptionPageGrid.CreateForTesting(); vsiOptions.LaunchGameApiFlow = LaunchGameApiFlowFlag.ENABLED; return(vsiOptions); }
public override YetiVSIService GetVsiService() { if (_vsiService == null) { var serviceOptions = OptionPageGrid.CreateForTesting(); serviceOptions.NatvisLoggingLevel = NatvisLoggingLevelFeatureFlag.VERBOSE; _vsiService = new YetiVSIService(serviceOptions); } return(_vsiService); }
public void TestDebugEngineConstructor() { var lldbShell = TestDummyGenerator.Create <SLLDBShell>(); var vsiService = new YetiVSIService(OptionPageGrid.CreateForTesting()); var metrics = TestDummyGenerator.Create <IMetrics>(); var vsOutputWindow = new OutputWindowStub(); var symbolSettingsManager = Substitute.For <IVsDebuggerSymbolSettingsManager120A>(); var serviceManager = new ServiceManagerStub(metrics, lldbShell, vsiService, vsOutputWindow, symbolSettingsManager); var compRoot = new MediumTestDebugEngineFactoryCompRoot( serviceManager, new JoinableTaskContext(), new GameletClientStub.Factory(), TestDummyGenerator.Create <IWindowsRegistry>()); var factory = compRoot.CreateDebugEngineFactory(); factory.Create(null); }
DebugEngineFactoryCompRootStub CreateEngineFactoryCompRoot( IDebugSessionLauncherFactory debugSessionLauncherFactory, IRemoteDeploy remoteDeploy) { var compRoot = new DebugEngineFactoryCompRootStub( debugSessionLauncherFactory, remoteDeploy, Substitute.For <IGameLauncher>()); _metrics = Substitute.For <IMetrics>(); _metrics.NewDebugSessionId().Returns(_debugSessionId); ISessionNotifier sessionNotifier = Substitute.For <ISessionNotifier>(); SLLDBShell lldbShell = TestDummyGenerator.Create <SLLDBShell>(); var vsiService = new YetiVSIService(OptionPageGrid.CreateForTesting()); var vsOutputWindow = new OutputWindowStub(); var symbolSettingsManager = Substitute.For <IVsDebuggerSymbolSettingsManager120A>(); compRoot.ServiceManager = new ServiceManagerStub(_metrics, lldbShell, vsiService, vsOutputWindow, symbolSettingsManager, sessionNotifier); return(compRoot); }
public void SetUp() { _optionPageGrid = OptionPageGrid.CreateForTesting(); _optionPageGrid.NatvisLoggingLevel = NatvisLoggingLevelFeatureFlag.VERBOSE; var taskContext = new JoinableTaskContext(); var serviceManager = new FakeServiceManager(taskContext); serviceManager.AddService(typeof(YetiVSIService), new YetiVSIService(_optionPageGrid)); _compRoot = new MediumTestDebugEngineFactoryCompRoot( serviceManager, taskContext, new GameletClientStub.Factory(), TestDummyGenerator.Create <IWindowsRegistry>()); _varInfoFactory = _compRoot.GetLldbVariableInformationFactory(); _nLogSpy = _compRoot.GetNatvisDiagnosticLogSpy(); _nLogSpy.Attach(); _evaluator = _compRoot.GetNatvisExpressionEvaluator(); }
public override YetiVSIService GetVsiService() { if (_vsiService != null) { return(_vsiService); } if (_serviceManager != null) { _vsiService = base.GetVsiService(); } if (_vsiService == null) { OptionPageGrid vsiServiceOptions = OptionPageGrid.CreateForTesting(); vsiServiceOptions.NatvisLoggingLevel = NatvisLoggingLevelFeatureFlag.VERBOSE; _vsiService = new YetiVSIService(vsiServiceOptions); } return(_vsiService); }
public MediumTestServiceManager(JoinableTaskContext taskContext) : this( taskContext, OptionPageGrid.CreateForTesting()) { }
public void SetUp() { _optionPage = OptionPageGrid.CreateForTesting(); }