コード例 #1
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();
        }