1 instantiation of TestSource
Microsoft.AspNetCore.Analyzer.Testing (1)
TestSource.cs (1)
23var testInput = new TestSource();
165 references to TestSource
Microsoft.AspNetCore.Analyzer.Testing (2)
TestSource.cs (2)
21public static TestSource Read(string rawSource) 23var testInput = new TestSource();
Microsoft.AspNetCore.App.Analyzers.Test (132)
Components\DisallowNonLiteralSequenceNumbersTest.cs (6)
34var source = TestSource.Read(@" 55var source = TestSource.Read(@" 76var source = TestSource.Read(@"
Infrastructure\WellKnownTypesTests.cs (4)
24var source = TestSource.Read(@" 46var source = TestSource.Read(@"
RouteEmbeddedLanguage\RoutePatternAnalyzerTests.cs (38)
29var source = TestSource.Read( 54var source = TestSource.Read(@" 86var source = TestSource.Read(@" 119var source = TestSource.Read(@" 147var source = TestSource.Read(@" 175var source = TestSource.Read(@" 204var source = TestSource.Read(@" 241var source = TestSource.Read(@" 267var source = TestSource.Read(@" 303var source = TestSource.Read(@" 343var source = TestSource.Read(@" 377var source = TestSource.Read(@" 417var source = TestSource.Read(@" 454var source = TestSource.Read(@" 497var source = TestSource.Read(@" 546var source = TestSource.Read(builder.ToString()); 586var source = TestSource.Read(builder.ToString()); 612var source = TestSource.Read(builder.ToString()); 639var source = TestSource.Read(builder.ToString());
RouteHandlers\DetectMisplacedLambdaAttributeTest.cs (14)
35var source = TestSource.Read(@" 57var source = TestSource.Read(@" 79var source = TestSource.Read(@" 113var source = TestSource.Read(@" 177var source = TestSource.Read(@" 196var source = TestSource.Read(@" 229var source = TestSource.Read(@"
RouteHandlers\DisallowMvcBindArgumentsOnParametersTest.cs (4)
50var source = TestSource.Read(@" 70var source = TestSource.Read(@"
RouteHandlers\DisallowReturningActionResultsFromMapMethodsTest.cs (12)
116var source = TestSource.Read(@" 139var source = TestSource.Read(@" 162var source = TestSource.Read(@" 190var source = TestSource.Read(@" 222var source = TestSource.Read(@" 260var source = TestSource.Read(@"
WebApplicationBuilder\DisallowConfigureHostBuilderConfigureWebHostTest.cs (16)
34var source = TestSource.Read(@" 54var source = TestSource.Read(@" 75var source = TestSource.Read(@" 97var source = TestSource.Read(@" 116var source = TestSource.Read(@" 137var source = TestSource.Read(@" 165var source = TestSource.Read(@" 194var source = TestSource.Read(@"
WebApplicationBuilder\DisallowConfigureHostLoggingTest.cs (2)
258var source = TestSource.Read(@"
WebApplicationBuilder\DisallowConfigureServicesTest.cs (2)
255var source = TestSource.Read(@"
WebApplicationBuilder\DisallowConfigureWebHostBuilderConfigureTest.cs (8)
35var source = TestSource.Read(@" 56var source = TestSource.Read(@" 77var source = TestSource.Read(@" 104var source = TestSource.Read(@"
WebApplicationBuilder\DisallowConfigureWebHostBuilderUseStartupTest.cs (12)
34var source = TestSource.Read(@" 55var source = TestSource.Read(@" 76var source = TestSource.Read(@" 96var source = TestSource.Read(@" 117var source = TestSource.Read(@" 144var source = TestSource.Read(@"
WebApplicationBuilder\UseTopLevelRouteRegistrationInsteadOfUseEndpointsTest.cs (14)
65var source = TestSource.Read(@" 83var source = TestSource.Read(@" 107var source = TestSource.Read(@" 131var source = TestSource.Read(@" 184var source = TestSource.Read(@" 216var source = TestSource.Read(@" 242var source = TestSource.Read(@"
Microsoft.AspNetCore.Components.Analyzers.Tests (5)
AnalyzerTestBase.cs (3)
14public TestSource Read(string source) 28return TestSource.Read(fileContent); 38var read = Read(source);
ComponentInternalUsageDiagnosticsAnalyzerTest.cs (2)
24var source = Read("UsesRendererTypesInDeclarations"); 68var source = Read("UsersRendererTypesInMethodBody");
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (5)
AnalyzerTestBase.cs (3)
14public TestSource Read(string source) 28return TestSource.Read(fileContent); 38var read = Read(source);
ComponentInternalUsageDiagnosticsAnalyzerTest.cs (2)
24var source = Read("UsesRendererTypesInDeclarations"); 68var source = Read("UsersRendererTypesInMethodBody");
Mvc.Api.Analyzers.Test (21)
ActualApiResponseMetadataFactoryTest.cs (3)
362private async Task<(bool result, IList<ActualApiResponseMetadata> responseMetadatas, TestSource testSource)> TryGetActualResponseMetadata(string typeName, string methodName) 364var testSource = MvcTestSource.Read(GetType().Name, "TryGetActualResponseMetadataTests"); 424var testSource = MvcTestSource.Read(GetType().Name, test);
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest.cs (2)
52var testSource = MvcTestSource.Read(GetType().Name, testMethod); 66var testSource = MvcTestSource.Read(GetType().Name, testMethod);
ApiControllerFactsTest.cs (1)
128var testSource = MvcTestSource.Read(GetType().Name, testFile);
ApiConventionAnalyzerIntegrationTest.cs (10)
71var testSource = TestSource.Read(source); 132var testSource = TestSource.Read(source); 164var testSource = TestSource.Read(source); 198var testSource = TestSource.Read(source); 263var testSource = MvcTestSource.Read(GetType().Name, testMethod); 282var testSource = MvcTestSource.Read(GetType().Name, testMethod);
Infrastructure\MvcTestSource.cs (2)
13public static TestSource Read(string testClassName, string testMethod) 22return TestSource.Read(fileContent);
MvcFactsTest.cs (1)
222var testSource = MvcTestSource.Read(GetType().Name, test);
SymbolApiConventionMatcherTest.cs (1)
555var testSource = MvcTestSource.Read(GetType().Name, test);
SymbolApiResponseMetadataProviderTest.cs (1)
476var testSource = MvcTestSource.Read(GetType().Name, test);