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

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