1 write to Source
Microsoft.AspNetCore.Analyzer.Testing (1)
TestSource.cs (1)
52
testInput.
Source
= string.Join(Environment.NewLine, lines);
89 references to Source
Microsoft.AspNetCore.App.Analyzers.Test (67)
Components\DisallowNonLiteralSequenceNumbersTest.cs (3)
42
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
63
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
84
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
Infrastructure\WellKnownTypesTests.cs (2)
33
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
63
var project = TestDiagnosticAnalyzerRunner.CreateProjectWithReferencesInBinDir(GetType().Assembly, source.
Source
);
RouteEmbeddedLanguage\RoutePatternAnalyzerTests.cs (20)
41
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
73
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
106
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
134
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
162
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
191
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
220
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
257
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
287
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
327
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
367
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
407
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
444
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
481
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
521
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
550
var diagnostics1 = await Runner.GetDiagnosticsAsync(source.
Source
);
559
var diagnostics2 = await Runner.GetDiagnosticsAsync(source.
Source
);
589
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
615
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
642
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
RouteHandlers\DetectMisplacedLambdaAttributeTest.cs (7)
44
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
66
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
90
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
123
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
186
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
214
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
236
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
RouteHandlers\DisallowMvcBindArgumentsOnParametersTest.cs (2)
57
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
79
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
RouteHandlers\DisallowReturningActionResultsFromMapMethodsTest.cs (6)
126
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
149
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
177
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
209
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
247
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
, controllerSource);
285
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
, controllerSource);
WebApplicationBuilder\DisallowConfigureHostBuilderConfigureWebHostTest.cs (8)
41
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
62
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
84
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
106
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
124
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
152
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
181
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
215
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
WebApplicationBuilder\DisallowConfigureHostLoggingTest.cs (1)
270
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
WebApplicationBuilder\DisallowConfigureServicesTest.cs (1)
280
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
WebApplicationBuilder\DisallowConfigureWebHostBuilderConfigureTest.cs (4)
43
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
64
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
91
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
119
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
WebApplicationBuilder\DisallowConfigureWebHostBuilderUseStartupTest.cs (6)
42
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
63
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
83
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
104
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
131
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
159
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
WebApplicationBuilder\UseTopLevelRouteRegistrationInsteadOfUseEndpointsTest.cs (7)
73
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
97
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
118
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
154
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
203
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
229
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
257
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
Microsoft.AspNetCore.Components.Analyzers.Tests (3)
AnalyzerTestBase.cs (1)
39
return DiagnosticProject.Create(GetType().Assembly, new[] { read.
Source
, });
ComponentInternalUsageDiagnosticsAnalyzerTest.cs (2)
27
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
71
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (3)
AnalyzerTestBase.cs (1)
39
return DiagnosticProject.Create(GetType().Assembly, new[] { read.
Source
, });
ComponentInternalUsageDiagnosticsAnalyzerTest.cs (2)
27
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
71
var diagnostics = await Runner.GetDiagnosticsAsync(source.
Source
);
Mvc.Api.Analyzers.Test (16)
ActualApiResponseMetadataFactoryTest.cs (2)
365
var project = MvcDiagnosticAnalyzerRunner.CreateProjectWithReferencesInBinDir(GetType().Assembly, new[] { testSource.
Source
});
425
var project = MvcDiagnosticAnalyzerRunner.CreateProjectWithReferencesInBinDir(GetType().Assembly, new[] { testSource.
Source
});
AddResponseTypeAttributeCodeFixProviderIntegrationTest.cs (1)
90
.
Source
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest.cs (2)
56
var result = await AnalyzerRunner.GetDiagnosticsAsync(testSource.
Source
);
70
var result = await AnalyzerRunner.GetDiagnosticsAsync(testSource.
Source
);
ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest.cs (1)
55
.
Source
ApiControllerFactsTest.cs (1)
129
var project = MvcDiagnosticAnalyzerRunner.CreateProjectWithReferencesInBinDir(GetType().Assembly, new[] { testSource.
Source
});
ApiConventionAnalyzerIntegrationTest.cs (6)
75
var result = await Executor.GetDiagnosticsAsync(testSource.
Source
);
136
var result = await Executor.GetDiagnosticsAsync(testSource.
Source
);
168
var result = await Executor.GetDiagnosticsAsync(testSource.
Source
);
202
var result = await Executor.GetDiagnosticsAsync(testSource.
Source
);
267
var result = await Executor.GetDiagnosticsAsync(testSource.
Source
);
286
var result = await Executor.GetDiagnosticsAsync(testSource.
Source
);
MvcFactsTest.cs (1)
223
var project = MvcDiagnosticAnalyzerRunner.CreateProjectWithReferencesInBinDir(GetType().Assembly, new[] { testSource.
Source
});
SymbolApiConventionMatcherTest.cs (1)
556
var project = MvcDiagnosticAnalyzerRunner.CreateProjectWithReferencesInBinDir(GetType().Assembly, new[] { testSource.
Source
});
SymbolApiResponseMetadataProviderTest.cs (1)
477
var project = MvcDiagnosticAnalyzerRunner.CreateProjectWithReferencesInBinDir(GetType().Assembly, new[] { testSource.
Source
});