public void OnIdle_NoopsIfDisposed()
        {
            // Arrange
            var parser = new DefaultVisualStudioRazorParser(
                Dispatcher,
                CreateDocumentTracker(),
                Mock.Of <RazorTemplateEngineFactoryService>(),
                new DefaultErrorReporter(),
                Mock.Of <ICompletionBroker>());

            parser.Dispose();

            // Act & Assert
            parser.OnIdle(null);
        }
Exemplo n.º 2
0
        public void OnIdle_NoopsIfDisposed()
        {
            // Arrange
            var parser = new DefaultVisualStudioRazorParser(
                Dispatcher,
                CreateDocumentTracker(),
                ProjectEngineFactory,
                new DefaultErrorReporter(),
                Mock.Of <VisualStudioCompletionBroker>(MockBehavior.Strict));

            parser.Dispose();

            // Act & Assert
            parser.OnIdle(null);
        }