10 instantiations of AnalyzerForErrorLogTest
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (8)
SarifErrorLoggerTests.cs (5)
145analyzers: new[] { new AnalyzerForErrorLogTest() }); 181analyzers: new[] { new AnalyzerForErrorLogTest() }); 216analyzers: new[] { new AnalyzerForErrorLogTest() }); 251analyzers: new[] { new AnalyzerForErrorLogTest() }); 286analyzers: new[] { new AnalyzerForErrorLogTest() });
SarifV2ErrorLoggerTests.cs (3)
388analyzers: new[] { new AnalyzerForErrorLogTest() }); 462analyzers: new[] { new AnalyzerForErrorLogTest() }); 524analyzers: new DiagnosticAnalyzer[] { new AnalyzerForErrorLogTest(), new SuppressorForErrorLogTest() });
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
SarifErrorLoggerTests.vb (1)
177analyzer:=New AnalyzerForErrorLogTest())
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (1)
81Dim analyzer = New AnalyzerForErrorLogTest()
30 references to AnalyzerForErrorLogTest
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (18)
SarifErrorLoggerTests.cs (2)
152Assert.Contains(AnalyzerForErrorLogTest.Descriptor1.Id, actualConsoleOutput); 153Assert.Contains(AnalyzerForErrorLogTest.Descriptor2.Id, actualConsoleOutput);
SarifV1ErrorLoggerTests.cs (4)
103}}", AnalyzerForErrorLogTest.GetUriForPath(sourceFile)); 181}}", AnalyzerForErrorLogTest.GetUriForPath(sourceFile)); 195var expectedIssues = AnalyzerForErrorLogTest.GetExpectedV1ErrorLogResultsAndRulesText(cmd.Compilation); 202var expectedIssues = AnalyzerForErrorLogTest.GetExpectedV1ErrorLogWithSuppressionResultsAndRulesText(cmd.Compilation);
SarifV2ErrorLoggerTests.cs (12)
149AnalyzerForErrorLogTest.GetUriForPath(sourceFile)); 241""category"": ""Compiler""" + AnalyzerForErrorLogTest.GetExpectedV2SuppressionTextForRulesSection(suppressionKinds) + @", 259AnalyzerForErrorLogTest.GetUriForPath(sourceFile)); 294AnalyzerForErrorLogTest.GetExpectedV2ErrorLogResultsText(cmd.Compilation), 295AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText()); 324AnalyzerForErrorLogTest.GetExpectedV2ErrorLogWithSuppressionResultsText(cmd.Compilation, justification, suppressionType), 325AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText(suppressionKinds)); 426AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText( 499AnalyzerForErrorLogTest.GetExpectedV2ErrorLogWithSuppressionResultsText(cmd.Compilation, "Justification1", suppressionType: "SuppressMessageAttribute"), 500AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText(suppressionKinds1: new[] { "external", "inSource" })); 561AnalyzerForErrorLogTest.GetExpectedV2ErrorLogWithSuppressionResultsText(cmd.Compilation, 564AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText(suppressionKinds1: new[] { "inSource" }));
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
428public static readonly SuppressionDescriptor Descriptor1 = new("SPR0001", AnalyzerForErrorLogTest.Descriptor1.Id, "SuppressorJustification1"); 429public 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)
149AnalyzerForErrorLogTest.GetUriForPath(sourceFilePath), 227""category"": ""Compiler""" + AnalyzerForErrorLogTest.GetExpectedV2SuppressionTextForRulesSection(suppressionKinds) + ", 260AnalyzerForErrorLogTest.GetUriForPath(sourceFilePath), 296AnalyzerForErrorLogTest.GetExpectedV2ErrorLogResultsText(cmd.Compilation), 297AnalyzerForErrorLogTest.GetExpectedV2ErrorLogRulesText())