Exemplo n.º 1
0
 private void AddAnalyzerClassName(ImmutableArray<DiagnosticAnalyzer>.Builder builder)
 {
     var analyzer = new ClassName();
     if (!AnalyzerIds.Contains(analyzer.SupportedDiagnostics.Single().Id))
     {
         return;
     }
     analyzer.Convention = Parameters[analyzer.SupportedDiagnostics.Single().Id].Single()["format"];
     builder.Add(analyzer);
 }
Exemplo n.º 2
0
 public void ClassName()
 {
     var diagnostic = new ClassName {Convention = "^(?:[A-HJ-Z][a-zA-Z0-9]+|I[a-z0-9][a-zA-Z0-9]*)$"};
     Verifier.Verify(@"TestCases\ClassName.cs", diagnostic);
 }