public static void CreateTaggerAlwaysReturnsNullBecauseTemplateErrorReporterIsNotATagger()
        {
            ITemplateEditorOptions options = OptionsWithErrorReportingEnabled(true);
            var provider = new TemplateErrorReporterProvider(options, Substitute.For <SVsServiceProvider>(), Substitute.For <ITextDocumentFactoryService>());

            Assert.Null(provider.CreateTagger <ErrorTag>(new FakeTextBuffer(string.Empty)));
        }
        public static void CreateTaggerDoesNotCreateTemplateErrorReporterWhenErrorReportingIsDisabled()
        {
            ITemplateEditorOptions options = OptionsWithErrorReportingEnabled(false);
            var provider = new TemplateErrorReporterProvider(options, Substitute.For <SVsServiceProvider>(), Substitute.For <ITextDocumentFactoryService>());

            ITextBuffer textBuffer = new FakeTextBuffer(string.Empty);

            provider.CreateTagger <ErrorTag>(textBuffer);

            Assert.False(textBuffer.Properties.ContainsProperty(typeof(TemplateErrorReporter)));
        }