public void AnnotationTypes_AllHave_SomeName() { foreach (var annotation in MockParser.WellKnownAnnotations()) { Assert.IsNotEmpty(annotation.Name); } }
public void AnnotationTypes_HaveDistinctNames() { var annotations = MockParser.WellKnownAnnotations(); var names = annotations.Select(a => a.Name).Distinct(); Assert.AreEqual(annotations.Count(), names.Count()); }
private AttributeAnnotationProvider GetAnnotationProvider() { return(new AttributeAnnotationProvider(MockParser.WellKnownAnnotations().OfType <IAttributeAnnotation>())); }
protected override IQuickFix QuickFix(RubberduckParserState state) { return(new AddAttributeAnnotationQuickFix(new AnnotationUpdater(state), new AttributeAnnotationProvider(MockParser.WellKnownAnnotations().OfType <IAttributeAnnotation>()))); }