예제 #1
0
        public void SetUp()
        {
            _nLogSpy = NLogSpy.CreateUnique(nameof(LaunchApiMediumTests));
            _nLogSpy.Attach();

            _taskContext = new FakeMainThreadContext().JoinableTaskContext;
        }
예제 #2
0
        public NLogSpy GetNatvisDiagnosticLogSpy()
        {
            if (_nLogSpy == null)
            {
                _nLogSpy = NLogSpy.CreateUnique("NatvisDiagnostic");
            }

            return(_nLogSpy);
        }
        public void SetUp()
        {
            _compRoot       = new MediumTestDebugEngineFactoryCompRoot(new JoinableTaskContext());
            _varInfoFactory = _compRoot.GetLldbVariableInformationFactory();

            _nLogSpy = _compRoot.GetNatvisDiagnosticLogSpy();
            _nLogSpy.Attach();

            _evaluator = _compRoot.GetNatvisExpressionEvaluator();
        }
        public void SetUp()
        {
            _compRoot = new MediumTestDebugEngineFactoryCompRoot(new JoinableTaskContext());
            ((OptionPageGrid)_compRoot.GetVsiService().Options).ExpressionEvaluationEngine =
                ExpressionEvaluationEngineFlag.LLDB;

            _varInfoFactory = _compRoot.GetLldbVariableInformationFactory();

            _nLogSpy = _compRoot.GetNatvisDiagnosticLogSpy();
            _nLogSpy.Attach();

            _evaluator = _compRoot.GetNatvisExpressionEvaluator();
        }
예제 #5
0
        public void SetUp()
        {
            _traceLogSpy = new LogSpy();
            _traceLogSpy.Attach();

            var compRoot = new MediumTestDebugEngineFactoryCompRoot(
                null, new JoinableTaskContext(), new GameletClientStub.Factory(),
                Substitute.For <IWindowsRegistry>());

            _natvisScanner = compRoot.GetNatvisVisualizerScanner();
            _natvisLoader  = compRoot.GetNatvisLoader();

            _nLogSpy = compRoot.GetNatvisDiagnosticLogSpy();
            _nLogSpy.Attach();

            _natvisLogger   = compRoot.GetNatvisDiagnosticLogger();
            _mockRegistry   = compRoot.GetWindowsRegistry();
            _mockFileSystem = (MockFileSystem)compRoot.GetFileSystem();
        }
        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();
        }