73 references to Read
Microsoft.AspNetCore.App.Analyzers.Test (66)
Components\DisallowNonLiteralSequenceNumbersTest.cs (3)
34var source = TestSource.Read(@" 55var source = TestSource.Read(@" 76var source = TestSource.Read(@"
Infrastructure\WellKnownTypesTests.cs (2)
24var source = TestSource.Read(@" 46var source = TestSource.Read(@"
RouteEmbeddedLanguage\RoutePatternAnalyzerTests.cs (19)
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 (7)
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 (2)
50var source = TestSource.Read(@" 70var source = TestSource.Read(@"
RouteHandlers\DisallowReturningActionResultsFromMapMethodsTest.cs (6)
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 (8)
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 (1)
258var source = TestSource.Read(@"
WebApplicationBuilder\DisallowConfigureServicesTest.cs (1)
255var source = TestSource.Read(@"
WebApplicationBuilder\DisallowConfigureWebHostBuilderConfigureTest.cs (4)
35var source = TestSource.Read(@" 56var source = TestSource.Read(@" 77var source = TestSource.Read(@" 104var source = TestSource.Read(@"
WebApplicationBuilder\DisallowConfigureWebHostBuilderUseStartupTest.cs (6)
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 (7)
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 (1)
AnalyzerTestBase.cs (1)
28return TestSource.Read(fileContent);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
AnalyzerTestBase.cs (1)
28return TestSource.Read(fileContent);
Mvc.Api.Analyzers.Test (5)
ApiConventionAnalyzerIntegrationTest.cs (4)
71var testSource = TestSource.Read(source); 132var testSource = TestSource.Read(source); 164var testSource = TestSource.Read(source); 198var testSource = TestSource.Read(source);
Infrastructure\MvcTestSource.cs (1)
22return TestSource.Read(fileContent);