141 references to CSharpAnalyzerVerifier
Microsoft.AspNetCore.App.Analyzers.Test (141)
Http\HeaderDictionaryIndexerAnalyzerTests.cs (9)
9
using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.
CSharpAnalyzerVerifier
<
20
await
VerifyCS
.VerifyAnalyzerAsync(@"
41
await
VerifyCS
.VerifyAnalyzerAsync(@"
62
await
VerifyCS
.VerifyAnalyzerAsync(@"
80
await
VerifyCS
.VerifyAnalyzerAsync(@"
98
await
VerifyCS
.VerifyAnalyzerAsync(@"
116
await
VerifyCS
.VerifyAnalyzerAsync(@"
135
await
VerifyCS
.VerifyAnalyzerAsync(@"
146
await
VerifyCS
.VerifyAnalyzerAsync(@"
Http\RequestDelegateReturnTypeAnalyzerTests.cs (18)
8
using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.
CSharpAnalyzerVerifier
<
17
await
VerifyCS
.VerifyAnalyzerAsync(@"
35
await
VerifyCS
.VerifyAnalyzerAsync(@"
53
await
VerifyCS
.VerifyAnalyzerAsync(@"
74
await
VerifyCS
.VerifyAnalyzerAsync(@"
93
await
VerifyCS
.VerifyAnalyzerAsync(@"
116
await
VerifyCS
.VerifyAnalyzerAsync(@"
132
await
VerifyCS
.VerifyAnalyzerAsync(@"
152
await
VerifyCS
.VerifyAnalyzerAsync(@"
173
await
VerifyCS
.VerifyAnalyzerAsync(@"
194
await
VerifyCS
.VerifyAnalyzerAsync(@"
222
await
VerifyCS
.VerifyAnalyzerAsync(@"
250
await
VerifyCS
.VerifyAnalyzerAsync(@"
263
await
VerifyCS
.VerifyAnalyzerAsync(@"
288
await
VerifyCS
.VerifyAnalyzerAsync(@"
301
await
VerifyCS
.VerifyAnalyzerAsync(@"
324
await
VerifyCS
.VerifyAnalyzerAsync(@"
342
await
VerifyCS
.VerifyAnalyzerAsync(@"
Mvc\DetectAmbiguousActionRoutesTest.cs (32)
5
using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.
CSharpAnalyzerVerifier
<Microsoft.AspNetCore.Analyzers.Mvc.MvcAnalyzer>;
40
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
67
await
VerifyCS
.VerifyAnalyzerAsync(source);
99
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
132
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
160
await
VerifyCS
.VerifyAnalyzerAsync(source);
188
await
VerifyCS
.VerifyAnalyzerAsync(source);
219
await
VerifyCS
.VerifyAnalyzerAsync(source);
256
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
285
await
VerifyCS
.VerifyAnalyzerAsync(source);
318
await
VerifyCS
.VerifyAnalyzerAsync(source);
345
await
VerifyCS
.VerifyAnalyzerAsync(source);
377
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
410
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
438
await
VerifyCS
.VerifyAnalyzerAsync(source);
466
await
VerifyCS
.VerifyAnalyzerAsync(source);
497
await
VerifyCS
.VerifyAnalyzerAsync(source);
534
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
563
await
VerifyCS
.VerifyAnalyzerAsync(source);
596
await
VerifyCS
.VerifyAnalyzerAsync(source);
640
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
669
await
VerifyCS
.VerifyAnalyzerAsync(source);
701
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
735
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
767
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
794
await
VerifyCS
.VerifyAnalyzerAsync(source);
821
await
VerifyCS
.VerifyAnalyzerAsync(source);
848
await
VerifyCS
.VerifyAnalyzerAsync(source);
878
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
909
await
VerifyCS
.VerifyAnalyzerAsync(source);
943
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
976
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
Mvc\DetectOverriddenAuthorizeAttributeTest.cs (24)
5
using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.
CSharpAnalyzerVerifier
<Microsoft.AspNetCore.Analyzers.Mvc.MvcAnalyzer>;
34
await
VerifyCS
.VerifyAnalyzerAsync(source,
52
await
VerifyCS
.VerifyAnalyzerAsync(source);
72
await
VerifyCS
.VerifyAnalyzerAsync(source,
97
await
VerifyCS
.VerifyAnalyzerAsync(source,
121
await
VerifyCS
.VerifyAnalyzerAsync(source,
144
await
VerifyCS
.VerifyAnalyzerAsync(source,
181
await
VerifyCS
.VerifyAnalyzerAsync(source,
211
await
VerifyCS
.VerifyAnalyzerAsync(source,
238
await
VerifyCS
.VerifyAnalyzerAsync(source);
261
await
VerifyCS
.VerifyAnalyzerAsync(source);
278
await
VerifyCS
.VerifyAnalyzerAsync(source);
294
await
VerifyCS
.VerifyAnalyzerAsync(source,
312
await
VerifyCS
.VerifyAnalyzerAsync(source);
328
await
VerifyCS
.VerifyAnalyzerAsync(source,
351
await
VerifyCS
.VerifyAnalyzerAsync(source,
377
await
VerifyCS
.VerifyAnalyzerAsync(source);
400
await
VerifyCS
.VerifyAnalyzerAsync(source);
426
await
VerifyCS
.VerifyAnalyzerAsync(source,
450
await
VerifyCS
.VerifyAnalyzerAsync(source,
478
await
VerifyCS
.VerifyAnalyzerAsync(source,
509
await
VerifyCS
.VerifyAnalyzerAsync(source,
542
await
VerifyCS
.VerifyAnalyzerAsync(source,
595
await
VerifyCS
.VerifyAnalyzerAsync(source,
RouteHandlers\AtMostOneFromBodyAttributeTest.cs (7)
6
using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.
CSharpAnalyzerVerifier
<Microsoft.AspNetCore.Analyzers.RouteHandlers.RouteHandlerAnalyzer>;
29
await
VerifyCS
.VerifyAnalyzerAsync(source);
48
await
VerifyCS
.VerifyAnalyzerAsync(source);
70
await
VerifyCS
.VerifyAnalyzerAsync(
103
await
VerifyCS
.VerifyAnalyzerAsync(
139
await
VerifyCS
.VerifyAnalyzerAsync(
171
await
VerifyCS
.VerifyAnalyzerAsync(source);
RouteHandlers\DetectAmbiguousMappedRoutesTest.cs (26)
5
using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.
CSharpAnalyzerVerifier
<Microsoft.AspNetCore.Analyzers.RouteHandlers.RouteHandlerAnalyzer>;
30
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
54
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
83
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
100
await
VerifyCS
.VerifyAnalyzerAsync(source);
124
await
VerifyCS
.VerifyAnalyzerAsync(source);
153
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
174
await
VerifyCS
.VerifyAnalyzerAsync(source);
189
await
VerifyCS
.VerifyAnalyzerAsync(source);
205
await
VerifyCS
.VerifyAnalyzerAsync(source);
221
await
VerifyCS
.VerifyAnalyzerAsync(source);
243
await
VerifyCS
.VerifyAnalyzerAsync(source);
268
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
292
await
VerifyCS
.VerifyAnalyzerAsync(source);
316
await
VerifyCS
.VerifyAnalyzerAsync(source);
332
await
VerifyCS
.VerifyAnalyzerAsync(source);
348
await
VerifyCS
.VerifyAnalyzerAsync(source);
366
await
VerifyCS
.VerifyAnalyzerAsync(source);
381
await
VerifyCS
.VerifyAnalyzerAsync(source);
397
await
VerifyCS
.VerifyAnalyzerAsync(source);
418
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
447
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
470
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
495
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
529
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostics);
551
await
VerifyCS
.VerifyAnalyzerAsync(source);
RouteHandlers\DisallowNonParsableComplexTypesOnParametersTest.cs (21)
6
using VerifyCS = Microsoft.AspNetCore.Analyzers.Verifiers.
CSharpAnalyzerVerifier
<Microsoft.AspNetCore.Analyzers.RouteHandlers.RouteHandlerAnalyzer>;
25
await
VerifyCS
.VerifyAnalyzerAsync(source);
203
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostic);
226
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostic);
251
await
VerifyCS
.VerifyAnalyzerAsync(source);
288
await
VerifyCS
.VerifyAnalyzerAsync(source);
316
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostic);
353
await
VerifyCS
.VerifyAnalyzerAsync(source);
396
await
VerifyCS
.VerifyAnalyzerAsync(source);
421
await
VerifyCS
.VerifyAnalyzerAsync(source);
452
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostic);
483
await
VerifyCS
.VerifyAnalyzerAsync(source, expectedDiagnostic);
499
await
VerifyCS
.VerifyAnalyzerAsync(source);
522
await
VerifyCS
.VerifyAnalyzerAsync(source);
551
await
VerifyCS
.VerifyAnalyzerAsync(source);
581
await
VerifyCS
.VerifyAnalyzerAsync(source);
613
await
VerifyCS
.VerifyAnalyzerAsync(source);
638
await
VerifyCS
.VerifyAnalyzerAsync(source);
660
await
VerifyCS
.VerifyAnalyzerAsync(source);
700
await
VerifyCS
.VerifyAnalyzerAsync(source);
740
await
VerifyCS
.VerifyAnalyzerAsync(source);
Verifiers\CSharpCodeFixVerifier.cs (2)
38
ReferenceAssemblies =
CSharpAnalyzerVerifier
<TAnalyzer>.GetReferenceAssemblies(),
63
ReferenceAssemblies =
CSharpAnalyzerVerifier
<TAnalyzer>.GetReferenceAssemblies(),
Verifiers\CSharpSourceGeneratorVerifier.cs (2)
28
ReferenceAssemblies =
CSharpAnalyzerVerifier
<WebApplicationBuilderAnalyzer>.GetReferenceAssemblies()
42
ReferenceAssemblies =
CSharpAnalyzerVerifier
<WebApplicationBuilderAnalyzer>.GetReferenceAssemblies()