예제 #1
0
 public void AnnotationTypes_AllHave_SomeName()
 {
     foreach (var annotation in MockParser.WellKnownAnnotations())
     {
         Assert.IsNotEmpty(annotation.Name);
     }
 }
예제 #2
0
        public void AnnotationTypes_HaveDistinctNames()
        {
            var annotations = MockParser.WellKnownAnnotations();
            var names       = annotations.Select(a => a.Name).Distinct();

            Assert.AreEqual(annotations.Count(), names.Count());
        }
예제 #3
0
 private AttributeAnnotationProvider GetAnnotationProvider()
 {
     return(new AttributeAnnotationProvider(MockParser.WellKnownAnnotations().OfType <IAttributeAnnotation>()));
 }
예제 #4
0
 protected override IQuickFix QuickFix(RubberduckParserState state)
 {
     return(new AddAttributeAnnotationQuickFix(new AnnotationUpdater(state),
                                               new AttributeAnnotationProvider(MockParser.WellKnownAnnotations().OfType <IAttributeAnnotation>())));
 }