28 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)
476
VerifyVB.
Diagnostic
().WithSpan(2, 7, 2, 16).WithArguments("SomeClass", "IMyInterface"),
478
VerifyVB.
Diagnostic
().WithSpan(6, 7, 6, 21).WithArguments("SomeOtherClass", "IMyInterface"),
549
VerifyVB.
Diagnostic
().WithSpan(3, 7, 3, 9).WithArguments("C1", "ISymbol"),
617
VerifyVB.
Diagnostic
().WithSpan(6, 7, 6, 9).WithArguments("C2", "ISymbol"),
722
VerifyVB.
Diagnostic
().WithSpan(3, 7, 3, 9).WithArguments("C1", "IOperation"),
746
VerifyVB.
Diagnostic
().WithSpan(6, 7, 6, 9).WithArguments("C2", "IOperation"),
MetaAnalyzers\ClassIsNotDiagnosticAnalyzerTests.cs (1)
48
VerifyVB.
Diagnostic
().WithLocation(6, 18).WithArguments("NotAnAnalyzer"));
MetaAnalyzers\CompilerExtensionTargetFrameworkAnalyzerTests.cs (1)
170
VerifyVB.
Diagnostic
().WithLocation(0).WithArguments(GetDisplayName(framework)),
MetaAnalyzers\DoNotStorePerCompilationDataOntoFieldsRuleTests.cs (1)
607
VerifyVB.
Diagnostic
()
MetaAnalyzers\DoNotUseCompilationGetSemanticModelTests.cs (1)
220
VerifyVB.
Diagnostic
().WithLocation(line, column);
MetaAnalyzers\InvalidReportDiagnosticRuleTests.cs (1)
270
VerifyVB.
Diagnostic
()
UseReturnValueFromImmutableObjectMethodTests.cs (1)
209
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 (12)
DoNotMixAttributesFromDifferentVersionsOfMEFTests.cs (1)
643
VerifyVB.
Diagnostic
()
ExportedPartsShouldHaveImportingConstructorTests.cs (9)
230
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(4, 2, 4, 17).WithArguments("D") },
479
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(3, 2, 3, 8).WithArguments("C") },
551
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(1, 2, 1, mefNamespace.Length + 9).WithArguments("C") },
650
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(3, 2, 3, 8).WithArguments("C") },
728
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(5, 5, 5, 21).WithArguments("C") },
802
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(3, 5, 3, 21).WithArguments("C") },
882
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(5, 6, 5, 26).WithArguments("C") },
960
VerifyVB.
Diagnostic
().WithSpan(9, 5, 9, 32).WithArguments("C"),
961
VerifyVB.
Diagnostic
().WithSpan(12, 5, 12, 34).WithArguments("C"),
TestExportsShouldNotBeDiscoverableTests.cs (2)
135
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(3, 2, 3, 8).WithArguments("C") },
169
ExpectedDiagnostics = { VerifyVB.
Diagnostic
().WithSpan(1, 2, 1, mefNamespace.Length + 9).WithArguments("C") },