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