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

            ITextBuffer textBuffer = new FakeTextBuffer(string.Empty);
            provider.CreateTagger<ErrorTag>(textBuffer);

            Assert.True(textBuffer.Properties.ContainsProperty(typeof(TemplateErrorReporter)));
        }
 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)));
 }