34 references to Diagnostic
Microsoft.CodeAnalysis.Analyzers.UnitTests (14)
ImplementationIsObsoleteAnalyzerTests.cs (2)
212
VerifyVB.
Diagnostic
().WithSpan(2, 7, 2, 16).WithArguments("SomeClass", "IMyInterface", "https://example.com"),
214
VerifyVB.
Diagnostic
().WithSpan(6, 7, 6, 21).WithArguments("SomeOtherClass", "IMyInterface", "https://example.com"),
InternalImplementationOnlyTests.cs (6)
450
VerifyVB.
Diagnostic
().WithSpan(2, 7, 2, 16).WithArguments("SomeClass", "IMyInterface"),
452
VerifyVB.
Diagnostic
().WithSpan(6, 7, 6, 21).WithArguments("SomeOtherClass", "IMyInterface"),
519
VerifyVB.
Diagnostic
().WithSpan(3, 7, 3, 9).WithArguments("C1", "ISymbol"),
587
VerifyVB.
Diagnostic
().WithSpan(6, 7, 6, 9).WithArguments("C2", "ISymbol"),
695
VerifyVB.
Diagnostic
().WithSpan(3, 7, 3, 9).WithArguments("C1", "IOperation"),
719
VerifyVB.
Diagnostic
().WithSpan(6, 7, 6, 9).WithArguments("C2", "IOperation"),
MetaAnalyzers\ClassIsNotDiagnosticAnalyzerTests.cs (1)
46
VerifyVB.
Diagnostic
().WithLocation(7, 18).WithArguments("NotAnAnalyzer"));
MetaAnalyzers\CompilerExtensionTargetFrameworkAnalyzerTests.cs (1)
181
VerifyVB.
Diagnostic
().WithLocation(0).WithArguments(GetDisplayName(framework)),
MetaAnalyzers\DoNotStorePerCompilationDataOntoFieldsRuleTests.cs (1)
609
VerifyVB.
Diagnostic
()
MetaAnalyzers\DoNotUseCompilationGetSemanticModelTests.cs (1)
212
VerifyVB.
Diagnostic
().WithLocation(line, column);
MetaAnalyzers\InvalidReportDiagnosticRuleTests.cs (1)
278
VerifyVB.
Diagnostic
()
UseReturnValueFromImmutableObjectMethodTests.cs (1)
213
VerifyVB.
Diagnostic
().WithLocation(markupKey).WithArguments(objectName, methodName);
Microsoft.CodeAnalysis.BannedApiAnalyzers.UnitTests (2)
RestrictedInternalsVisibleToAnalyzerTests.cs (2)
28
VerifyVB.
Diagnostic
()
33
VerifyVB.
Diagnostic
()
Roslyn.Diagnostics.Analyzers.UnitTests (18)
DoNotMixAttributesFromDifferentVersionsOfMEFTests.cs (1)
603
VerifyVB.
Diagnostic
()
ExportedPartsShouldHaveImportingConstructorTests.cs (9)
230
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(4, 2, 4, 17).WithArguments("D") },
479
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(4, 2, 4, 8).WithArguments("C") },
551
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(2, 2, 2, mefNamespace.Length + 9).WithArguments("C") },
650
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(4, 2, 4, 8).WithArguments("C") },
728
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(6, 5, 6, 21).WithArguments("C") },
802
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(4, 5, 4, 21).WithArguments("C") },
882
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(6, 6, 6, 26).WithArguments("C") },
960
VerifyVB.
Diagnostic
().WithSpan(10, 5, 10, 32).WithArguments("C"),
961
VerifyVB.
Diagnostic
().WithSpan(13, 5, 13, 34).WithArguments("C"),
ImportingConstructorShouldBeObsoleteTests.cs (6)
195
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(9, 6, 9, 66).WithArguments("C") },
307
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(7, 6, 7, 26).WithArguments("C") },
413
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(6, 6, 6, 26).WithArguments("C") },
527
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(8, 6, 8, 14).WithArguments("C") },
643
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(9, 6, 9, 59).WithArguments("C") },
759
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(8, 6, 8, 35).WithArguments("C") },
TestExportsShouldNotBeDiscoverableTests.cs (2)
135
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(4, 2, 4, 8).WithArguments("C") },
169
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(2, 2, 2, mefNamespace.Length + 9).WithArguments("C") },