12 instantiations of AnalyzerForErrorLogTest
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (9)
SarifErrorLoggerTests.cs (6)
146analyzers: new[] { new AnalyzerForErrorLogTest() }); 182analyzers: new[] { new AnalyzerForErrorLogTest() }); 217analyzers: new[] { new AnalyzerForErrorLogTest() }); 252analyzers: new[] { new AnalyzerForErrorLogTest() }); 287analyzers: new[] { new AnalyzerForErrorLogTest() }); 320analyzers: new[] { new AnalyzerForErrorLogTest() });
SarifV2ErrorLoggerTests.cs (3)
452analyzers: new[] { new AnalyzerForErrorLogTest() }); 534analyzers: new[] { new AnalyzerForErrorLogTest() }); 604analyzers: new DiagnosticAnalyzer[] { new AnalyzerForErrorLogTest(), new SuppressorForErrorLogTest() });
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
SarifErrorLoggerTests.vb (1)
177analyzer:=New AnalyzerForErrorLogTest())
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (2)
46Dim analyzer = New AnalyzerForErrorLogTest() 92Dim analyzer = New AnalyzerForErrorLogTest()
40 references to AnalyzerForErrorLogTest
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (28)
SarifErrorLoggerTests.cs (2)
153Assert.Contains(AnalyzerForErrorLogTest.Descriptor1.Id, actualConsoleOutput); 154Assert.Contains(AnalyzerForErrorLogTest.Descriptor2.Id, actualConsoleOutput);
SarifV1ErrorLoggerTests.cs (5)
103}}", AnalyzerForErrorLogTest.GetUriForPath(sourceFile)); 181}}", AnalyzerForErrorLogTest.GetUriForPath(sourceFile)); 195var expectedIssues = AnalyzerForErrorLogTest.GetExpectedV1ErrorLogResultsAndRulesText(cmd.Compilation); 202var expectedIssues = AnalyzerForErrorLogTest.GetExpectedV1ErrorLogWithSuppressionResultsAndRulesText(cmd.Compilation); 209var expectedIssues = AnalyzerForErrorLogTest.GetExpectedV1ErrorLogResultsAndRulesText(cmd.Compilation, warnAsError: true);
SarifV2ErrorLoggerTests.cs (21)
153AnalyzerForErrorLogTest.GetUriForPath(sourceFile)); 245""category"": ""Compiler""" + AnalyzerForErrorLogTest.GetExpectedV2SuppressionTextForRulesSection(suppressionKinds) + @", 264AnalyzerForErrorLogTest.GetUriForPath(sourceFile)); 303AnalyzerForErrorLogTest.GetExpectedV2ErrorLogResultsText(cmd.Compilation), 304AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText(cmd.DescriptorsWithInfo, CultureInfo.InvariantCulture)); 337AnalyzerForErrorLogTest.GetExpectedV2ErrorLogWithSuppressionResultsText(cmd.Compilation, justification, suppressionType), 338AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText(cmd.DescriptorsWithInfo, CultureInfo.InvariantCulture, suppressionKinds1: suppressionKinds)); 374AnalyzerForErrorLogTest.GetExpectedV2ErrorLogResultsText(cmd.Compilation, warnAsError: true), 375AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText(cmd.DescriptorsWithInfo, CultureInfo.InvariantCulture), 376AnalyzerForErrorLogTest.GetExpectedV2ErrorLogInvocationsText( 377(AnalyzerForErrorLogTest.Descriptor1.Id, 0, ImmutableHashSet.Create(ReportDiagnostic.Error)))); 495AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText(cmd.DescriptorsWithInfo, CultureInfo.InvariantCulture, 497AnalyzerForErrorLogTest.GetExpectedV2ErrorLogInvocationsText( 498(AnalyzerForErrorLogTest.Descriptor1.Id, 0, ImmutableHashSet.Create(ReportDiagnostic.Suppress)), 499(AnalyzerForErrorLogTest.Descriptor2.Id, 1, ImmutableHashSet.Create(ReportDiagnostic.Suppress)))); 576AnalyzerForErrorLogTest.GetExpectedV2ErrorLogWithSuppressionResultsText(cmd.Compilation, "Justification1", suppressionType: "SuppressMessageAttribute"), 577AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText(cmd.DescriptorsWithInfo, CultureInfo.InvariantCulture, 579AnalyzerForErrorLogTest.GetExpectedV2ErrorLogInvocationsText( 580(AnalyzerForErrorLogTest.Descriptor1.Id, 0, ImmutableHashSet.Create(ReportDiagnostic.Suppress, ReportDiagnostic.Warn)))); 645AnalyzerForErrorLogTest.GetExpectedV2ErrorLogWithSuppressionResultsText(cmd.Compilation, 648AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText(cmd.DescriptorsWithInfo, CultureInfo.InvariantCulture, suppressionKinds1: new[] { "inSource" }));
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
514public static readonly SuppressionDescriptor Descriptor1 = new("SPR0001", AnalyzerForErrorLogTest.Descriptor1.Id, "SuppressorJustification1"); 515public static readonly SuppressionDescriptor Descriptor2 = new("SPR0002", AnalyzerForErrorLogTest.Descriptor2.Id, "SuppressorJustification2");
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (10)
SarifErrorLoggerTests.vb (2)
183Assert.Contains(AnalyzerForErrorLogTest.Descriptor1.Id, actualConsoleOutput) 184Assert.Contains(AnalyzerForErrorLogTest.Descriptor2.Id, actualConsoleOutput)
SarifV1ErrorLoggerTests.vb (3)
109}}", AnalyzerForErrorLogTest.GetUriForPath(sourceFilePath), Path.GetFileNameWithoutExtension(sourceFilePath)) 189}}", AnalyzerForErrorLogTest.GetUriForPath(sourceFilePath), Path.GetFileNameWithoutExtension(sourceFilePath)) 203Dim expectedIssues = AnalyzerForErrorLogTest.GetExpectedV1ErrorLogResultsAndRulesText(cmd.Compilation)
SarifV2ErrorLoggerTests.vb (5)
151AnalyzerForErrorLogTest.GetUriForPath(sourceFilePath), 229""category"": ""Compiler""" + AnalyzerForErrorLogTest.GetExpectedV2SuppressionTextForRulesSection(suppressionKinds) + ", 263AnalyzerForErrorLogTest.GetUriForPath(sourceFilePath), 303AnalyzerForErrorLogTest.GetExpectedV2ErrorLogResultsText(cmd.Compilation), 304AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText(cmd.DescriptorsWithInfo, CultureInfo.InvariantCulture))