16 references to AssertDiagnostic
Microsoft.Analyzers.Extra.Tests (16)
AsyncCallInsideUsingBlockAnalyzerTests.cs (1)
407source.AssertDiagnostic(i, DiagDescriptors.AsyncCallInsideUsingBlock, d[i]);
AsyncMethodWithoutCancellationTests.cs (1)
168source.AssertDiagnostic(i, DiagDescriptors.AsyncMethodWithoutCancellation, d[i]);
CallAnalysis\ArraysTests.cs (1)
130Source.AssertDiagnostic(i, DiagDescriptors.Arrays, d[i]);
CallAnalysis\LegacyCollectionTests.cs (1)
52Source.AssertDiagnostic(i, DiagDescriptors.LegacyCollection, d[i]);
CallAnalysis\SplitTests.cs (1)
37Source.AssertDiagnostic(i, DiagDescriptors.Split, d[i]);
CallAnalysis\StartsEndsWithTests.cs (2)
65Source.AssertDiagnostic(i, DiagDescriptors.StartsEndsWith, d[i]); 123Source.AssertDiagnostic(i, DiagDescriptors.StartsEndsWith, d[i]);
CallAnalysis\StaticTimeTests.cs (1)
85Source.AssertDiagnostic(i, DiagDescriptors.StaticTime, d[i]);
CallAnalysis\ValueTupleTests.cs (1)
54Source.AssertDiagnostic(i, DiagDescriptors.ValueTuple, d[i]);
CoalesceAnalyzerTests.cs (2)
100Source.AssertDiagnostic(i, DiagDescriptors.CoalesceAssignment, d[i]); 168Source.AssertDiagnostic(i, DiagDescriptors.Coalesce, d[i]);
ConditionalAccessAnalyzerTests.cs (1)
113Source.AssertDiagnostic(i, DiagDescriptors.ConditionalAccess, d[i]);
MakeExeTypesInternalTests.cs (1)
164Source.AssertDiagnostic(i, DiagDescriptors.MakeExeTypesInternal, d[i]);
UsingToStringInLoggersTests.cs (3)
73Source.AssertDiagnostic(0, DiagDescriptors.UsingToStringInLoggers, d[0]); 74Source.AssertDiagnostic(1, DiagDescriptors.UsingToStringInLoggers, d[1]); 75Source.AssertDiagnostic(2, DiagDescriptors.UsingToStringInLoggers, d[2]);