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