Esempio n. 1
0
        public static void CreateTaggerReturnsSameTaggerWhenCalledMultipleTimesForSameBuffer()
        {
            ITemplateEditorOptions options = OptionsWithSyntaxColorizationEnabled(true);
            var target  = new TemplateClassificationTaggerProvider(options, new FakeClassificationTypeRegistryService());
            var buffer  = new FakeTextBuffer(string.Empty);
            var tagger1 = target.CreateTagger <ClassificationTag>(buffer);
            var tagger2 = target.CreateTagger <ClassificationTag>(buffer);

            Assert.Same(tagger1, tagger2);
        }
Esempio n. 2
0
        public static void CreateTaggerReturnsTemplateClassificationTagger()
        {
            ITemplateEditorOptions options = OptionsWithSyntaxColorizationEnabled(true);
            var target = new TemplateClassificationTaggerProvider(options, new FakeClassificationTypeRegistryService());

            Assert.NotNull(target.CreateTagger <ClassificationTag>(new FakeTextBuffer(string.Empty)));
        }