460 references to ReadAllText
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
131var csprojContent = File.ReadAllText(csprojPath); 153string programCs = File.ReadAllText(programCsPath);
Aspire.Hosting.Azure (2)
AzureBicepResource.cs (1)
150return File.ReadAllText(TemplateFile);
AzureProvisioningResource.cs (1)
106_generatedBicep = File.ReadAllText(template.Path);
Aspire.Hosting.Azure.Tests (6)
AzureEnvironmentResourceTests.cs (6)
36var mainBicep = File.ReadAllText(mainBicepPath); 40var envBicep = File.ReadAllText(envBicepPath); 73var mainBicep = File.ReadAllText(mainBicepPath); 125var content = File.ReadAllText(mainBicepPath); 172var mainBicep = File.ReadAllText(Path.Combine(tempDir.FullName, "main.bicep")); 173var storageBicep = File.ReadAllText(Path.Combine(tempDir.FullName, "storage", "storage.bicep"));
Aspire.Hosting.Docker.Tests (10)
DockerComposePublisherTests.cs (10)
101await Verify(File.ReadAllText(composePath), "yaml") 102.AppendContentAsFile(File.ReadAllText(envPath), "env"); 125await Verify(File.ReadAllText(composePath), "yaml"); 209await Verify(File.ReadAllText(composePath), "yaml") 210.AppendContentAsFile(File.ReadAllText(envPath), "env"); 231var firstContent = File.ReadAllText(envFilePath).Replace("PARAM1=", "PARAM1=changed"); 236var secondContent = File.ReadAllText(envFilePath); 270var firstContent = File.ReadAllText(envFilePath).Replace("PARAM1=", "PARAM1=changed"); 275var secondContent = File.ReadAllText(envFilePath); 301var composeFile = File.ReadAllText(composePath);
Aspire.Hosting.Kubernetes.Tests (5)
KubernetesEnvironmentResourceTests.cs (3)
28await Verify(File.ReadAllText(chartYaml), "yaml") 29.AppendContentAsFile(File.ReadAllText(valuesYaml), "yaml") 30.AppendContentAsFile(File.ReadAllText(deploymentYaml), "yaml");
KubernetesPublisherTests.cs (2)
66settingsTask = Verify(File.ReadAllText(filePath), fileExtension); 70settingsTask = settingsTask.AppendContentAsFile(File.ReadAllText(filePath), fileExtension);
Aspire.Hosting.Tests (3)
AspireStoreTests.cs (3)
68Assert.Equal("Test content", File.ReadAllText(filePath)); 82Assert.Equal("Test content", File.ReadAllText(filePath)); 114var content2 = File.ReadAllText(filePath2);
Aspire.Templates.Tests (6)
AppHostTemplateTests.cs (1)
30var newContents = AppHostPackageReferenceRegex().Replace(File.ReadAllText(projectPath), @"$1""8.1.0""");
BuildAndRunTemplateTests.cs (2)
68var projectContents = File.ReadAllText(projectName); 168var projectContents = File.ReadAllText(projectName);
TemplateTestsBase.cs (1)
104var newContents = File.ReadAllText(projectPath)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
131var csprojContent = File.ReadAllText(csprojPath); 153string programCs = File.ReadAllText(programCsPath);
BuildBoss (2)
CompilerNuGetCheckerUtil.cs (1)
97var publishDataRoot = JObject.Parse(File.ReadAllText(publishDataPath));
OptProfCheckerUtil.cs (1)
44var content = File.ReadAllText(OptProfFile);
CodeGenerator (1)
Program.cs (1)
63var existingContent = File.Exists(path) ? File.ReadAllText(path) : "";
ConfigurationSchemaGenerator.Tests (3)
GeneratorTests.cs (3)
42private static readonly SyntaxTree s_attributesSyntaxTree = CSharpSyntaxTree.ParseText(File.ReadAllText("ConfigurationSchemaAttributes.cs")); 1602var actual = File.ReadAllText(outputPath).ReplaceLineEndings(); 1603var baseline = File.ReadAllText(Path.Combine("Baselines", "IntegrationTest.baseline.json")).ReplaceLineEndings();
dotnet-razorpagegenerator (2)
Program.cs (2)
195var cshtmlContent = File.ReadAllText(_source.PhysicalPath); 214var includeFileContent = File.ReadAllText(System.IO.Path.Combine(basePath, includeFileName));
dotnet-svcutil-lib (4)
Shared\MSBuildProj.cs (3)
147var project = await ParseAsync(File.ReadAllText(filePath), filePath, logger, cancellationToken).ConfigureAwait(false); 154var project = await ParseAsync(File.ReadAllText(filePath), filePath, logger, cancellationToken, tfMoniker).ConfigureAwait(false); 412project = await ParseAsync(File.ReadAllText(fullPath), fullPath, logger, cancellationToken).ConfigureAwait(false);
Shared\Options\ApplicationOptions.cs (1)
140jsonText = File.ReadAllText(fileInfo.FullName);
dotnet-svcutil-lib.Tests (5)
E2ETests.cs (1)
383File.WriteAllText(dstParamsFile, File.ReadAllText(dstParamsFile).Replace("$testCasesPath$", g_TestCasesDir.Replace("\\", "/")));
FixupUtil.cs (1)
107var originalText = System.IO.File.ReadAllText(fileName);
TestInit.cs (1)
118File.WriteAllText(programPath, File.ReadAllText(programPath)
UnitTest.cs (2)
332File.WriteAllText(jsonFileDstPath, File.ReadAllText(jsonFileDstPath).Replace("$testCaseProject$", this_TestCaseProject.FullPath.Replace("\\", "/"))); 348var jsonText = File.ReadAllText(jsonFileSrcPath);
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
119var id = File.ReadAllText(outputFile)?.Trim();
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
119var id = File.ReadAllText(outputFile)?.Trim();
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
1363string actual = File.ReadAllText(fileWithPath);
IdeBenchmarks (2)
FormatterBenchmarks.cs (2)
44var text = File.ReadAllText(path); 57var text = File.ReadAllText(path);
IdeCoreBenchmarks (3)
FormatterBenchmarks.cs (1)
39var text = File.ReadAllText(csFilePath).Replace("<auto-generated />", "")
RenameBenchmarks.cs (1)
45.AddDocument(documentId, "DocumentName", File.ReadAllText(_csFilePath));
SyntacticChangeRangeBenchmark.cs (1)
38var text = File.ReadAllText(csFilePath);
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
217dynamic depsFileContent = JsonConvert.DeserializeObject(File.ReadAllText(path)); 234return File.ReadAllText(filename);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISSubAppSiteFixture.cs (1)
18deploymentParameters.ServerConfigTemplateContent = File.ReadAllText("IIS.SubApp.Config");
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
217dynamic depsFileContent = JsonConvert.DeserializeObject(File.ReadAllText(path)); 234return File.ReadAllText(filename);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISSubAppSiteFixture.cs (1)
18deploymentParameters.ServerConfigTemplateContent = File.ReadAllText("IIS.SubApp.Config");
IIS.Microbenchmarks (1)
StartupTimeBenchmark.cs (1)
32ServerConfigTemplateContent = File.ReadAllText("IIS.config"),
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
217dynamic depsFileContent = JsonConvert.DeserializeObject(File.ReadAllText(path)); 234return File.ReadAllText(filename);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISSubAppSiteFixture.cs (1)
18deploymentParameters.ServerConfigTemplateContent = File.ReadAllText("IIS.SubApp.Config");
IIS.NewShim.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
217dynamic depsFileContent = JsonConvert.DeserializeObject(File.ReadAllText(path)); 234return File.ReadAllText(filename);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISSubAppSiteFixture.cs (1)
18deploymentParameters.ServerConfigTemplateContent = File.ReadAllText("IIS.SubApp.Config");
IIS.ShadowCopy.Tests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
217dynamic depsFileContent = JsonConvert.DeserializeObject(File.ReadAllText(path)); 234return File.ReadAllText(filename);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISSubAppSiteFixture.cs (1)
18deploymentParameters.ServerConfigTemplateContent = File.ReadAllText("IIS.SubApp.Config");
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
217dynamic depsFileContent = JsonConvert.DeserializeObject(File.ReadAllText(path)); 234return File.ReadAllText(filename);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISSubAppSiteFixture.cs (1)
18deploymentParameters.ServerConfigTemplateContent = File.ReadAllText("IIS.SubApp.Config");
installer.tasks (1)
GenerateRunScript.cs (1)
40string templateContent = File.ReadAllText(TemplatePath);
Interop.FunctionalTests (1)
H2SpecCommands.cs (1)
267var results = File.ReadAllText(tempFile);
InteropClient (2)
InteropClient.cs (2)
163var pem = File.ReadAllText("Certs/ca.pem"); 859var jobject = JObject.Parse(File.ReadAllText(keyFile));
Microsoft.Analyzers.Extra.Tests (1)
Resources\FileVisibleToAnalyzer.cs (1)
26public override SourceText? GetText(CancellationToken cancellationToken = default) => SourceText.From(File.ReadAllText(Path));
Microsoft.Analyzers.Local.Tests (1)
Resources\FileVisibleToAnalyzer.cs (1)
26public override SourceText? GetText(CancellationToken cancellationToken = default) => SourceText.From(File.ReadAllText(Path));
Microsoft.AspNetCore.App.UnitTests (3)
SharedFxTests.cs (2)
93var runtimeConfig = JObject.Parse(File.ReadAllText(runtimeConfigFilePath)); 113var depsFile = JObject.Parse(File.ReadAllText(depsFilePath));
TargetingPackTests.cs (1)
240_output.WriteLine(File.ReadAllText(platformManifestPath));
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (9)
UserJwtsTests.cs (9)
67Assert.Contains("dotnet-user-jwts", File.ReadAllText(appsettings)); 112var appSettings = JsonSerializer.Deserialize<JsonObject>(File.ReadAllText(appsettings)); 115appSettings = JsonSerializer.Deserialize<JsonObject>(File.ReadAllText(appsettings)); 129var appSettings = JsonSerializer.Deserialize<JsonObject>(File.ReadAllText(appsettings)); 132appSettings = JsonSerializer.Deserialize<JsonObject>(File.ReadAllText(appsettings)); 206var appsettingsContent = File.ReadAllText(appsettings); 224var appsettingsContent = File.ReadAllText(appsettings); 242var appsettingsContent = File.ReadAllText(appsettings); 260var appsettingsContent = File.ReadAllText(appsettings);
Microsoft.AspNetCore.Authentication.Test (4)
WsFederation\WsFederationTest.cs (2)
250kvps.Add(new KeyValuePair<string, string>("wresult", File.ReadAllText(tokenFile))); 452var metadata = File.ReadAllText(@"WsFederation/federationmetadata.xml");
WsFederation\WsFederationTest_Handler.cs (2)
248kvps.Add(new KeyValuePair<string, string>("wresult", File.ReadAllText(tokenFile))); 448var metadata = File.ReadAllText(@"WsFederation/federationmetadata.xml");
Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests (1)
TransformTest.cs (1)
84var transformFile = File.ReadAllText("applicationHost.xdt");
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
AnalyzerTestBase.cs (1)
27var fileContent = File.ReadAllText(filePath);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
AnalyzerTestBase.cs (1)
27var fileContent = File.ReadAllText(filePath);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (6)
DataProtectionProviderTests.cs (6)
41string fileText = File.ReadAllText(allFiles[0].FullName); 76var fileText = File.ReadAllText(file.FullName); 110string fileText = File.ReadAllText(allFiles[0].FullName); 156string fileText = File.ReadAllText(allFiles[0].FullName); 236string fileText = File.ReadAllText(allFiles[0].FullName); 307string fileText = File.ReadAllText(allFiles[0].FullName);
Microsoft.AspNetCore.DataProtection.Tests (2)
Repositories\FileSystemXmlRepositoryTests.cs (2)
82var parsedElement = XElement.Parse(File.ReadAllText(fileInfo.FullName)); 116var parsedElement = XElement.Parse(File.ReadAllText(fileInfo.FullName));
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
EndpointFilterInvocationContextOfTTests.cs (2)
91var compiledTemplate = generator.CompileTemplate(File.ReadAllText(templatePath)); 94var currentContent = File.ReadAllText(currentContentPath);
Microsoft.AspNetCore.Http.Results.Tests (6)
ResultsCacheTests.cs (2)
17var compiledTemplate = generator.CompileTemplate(File.ReadAllText(templatePath)); 20var currentContent = File.ReadAllText(currentContentPath);
ResultsOfTTests.cs (4)
35var currentResultsOfTGenerated = File.ReadAllText(resultsOfTGeneratedPath); 36var currentTestsGenerated = File.ReadAllText(testsGeneratedPath); 40var testResultsOfTGenerated = File.ReadAllText(testResultsOfTGeneratedPath); 41var testTestsGenerated = File.ReadAllText(testTestsGeneratedPath);
Microsoft.AspNetCore.HttpLogging.Tests (13)
FileLoggerProcessorTests.cs (13)
53Assert.Equal(_messageOne + Environment.NewLine, File.ReadAllText(filePath)); 99Assert.Equal(_messageOne + Environment.NewLine, File.ReadAllText(filePathToday)); 101Assert.Equal(_messageTwo + Environment.NewLine, File.ReadAllText(filePathTomorrow)); 140Assert.Equal(_messageOne + Environment.NewLine, File.ReadAllText(filePath1)); 141Assert.Equal(_messageTwo + Environment.NewLine, File.ReadAllText(filePath2)); 404Assert.Equal(_messageOne + Environment.NewLine, File.ReadAllText(filePath1)); 405Assert.Equal(_messageTwo + Environment.NewLine, File.ReadAllText(filePath2)); 406Assert.Equal(_messageThree + Environment.NewLine, File.ReadAllText(filePath3)); 471Assert.Equal(_messageThree + Environment.NewLine, File.ReadAllText(filePath3)); 472Assert.Equal(_messageFour + Environment.NewLine, File.ReadAllText(filePath4)); 539Assert.Equal(_messageOne + Environment.NewLine, File.ReadAllText(filePath1)); 540Assert.Equal(_messageTwo + Environment.NewLine, File.ReadAllText(filePath2)); 558if (File.ReadAllText(filePath).Length >= length)
Microsoft.AspNetCore.Identity.Test (1)
IdentityUIScriptsTest.cs (1)
86var fallbackSrcContent = File.ReadAllText(
Microsoft.AspNetCore.InternalTesting.Tests (2)
AssemblyTestLogTests.cs (2)
163var globalLogContent = MakeConsistent(File.ReadAllText(globalLogPath)); 164var testLogContent = MakeConsistent(File.ReadAllText(testLog));
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\NginxDeployer.cs (1)
186var pid = File.ReadAllText(pidFile);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
IISDeployer.cs (2)
83DeploymentParameters.ServerConfigTemplateContent = File.ReadAllText("IIS.config"); 311var config = XDocument.Parse(DeploymentParameters.ServerConfigTemplateContent ?? File.ReadAllText("IIS.config"));
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Certificates\CertificateConfigLoader.cs (1)
100var keyText = File.ReadAllText(keyPath);
Microsoft.AspNetCore.Server.Kestrel.Tests (10)
GeneratedCodeTests.cs (10)
38var currentHttpHeadersGenerated = File.ReadAllText(httpHeadersGeneratedPath); 39var currentHttpProtocolGenerated = File.ReadAllText(httpProtocolGeneratedPath); 40var currentHttpUtilitiesGenerated = File.ReadAllText(httpUtilitiesGeneratedPath); 41var currentTransportConnectionBaseGenerated = File.ReadAllText(transportMultiplexedConnectionGeneratedPath); 42var currentTransportConnectionGenerated = File.ReadAllText(transportConnectionGeneratedPath); 50var testHttpHeadersGenerated = File.ReadAllText(testHttpHeadersGeneratedPath); 51var testHttpProtocolGenerated = File.ReadAllText(testHttpProtocolGeneratedPath); 52var testHttpUtilitiesGenerated = File.ReadAllText(testHttpUtilitiesGeneratedPath); 53var testTransportMultiplxedConnectionGenerated = File.ReadAllText(testTransportMultiplexedConnectionGeneratedPath); 54var testTransportConnectionGenerated = File.ReadAllText(testTransportConnectionGeneratedPath);
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnTester.cs (1)
141ServerConfigTemplateContent = (server == ServerType.IISExpress) ? File.ReadAllText(configPath) : null,
Microsoft.Build (5)
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
54return EditorConfigFile.Parse(File.ReadAllText(editorConfigFilePath));
Construction\ProjectRootElement.cs (1)
1997string contents = File.ReadAllText(path);
Construction\Solution\SolutionFile.cs (1)
672JsonDocument text = JsonDocument.Parse(File.ReadAllText(solutionFilterFile), options);
ExceptionHandling.cs (1)
400builder.Append(File.ReadAllText(file));
ManagedFileSystem.cs (1)
51return File.ReadAllText(path);
Microsoft.Build.BuildCheck.UnitTests (6)
EndToEndTests.cs (6)
179JsonNode? depsJson = JsonObject.Parse(File.ReadAllText(depsFiles[0])); 192string text = File.ReadAllText(filePath); 401string text = File.ReadAllText(filePath); 975doc.LoadXml(File.ReadAllText(nugetTemplatePath)); 1049File.ReadAllText(Path.Combine(TestAssetsRootPath, testAssetsFolderName, fileName)) 1073string configContent = File.ReadAllText(Path.Combine(TestAssetsRootPath, testAssetsFolderName, $"{EditorConfigFileName}test"));
Microsoft.Build.CommandLine.UnitTests (2)
XMake_Tests.cs (2)
839File.ReadAllText(resultFile).ShouldContain(result); 1165var logFileContents = File.ReadAllText(logFile);
Microsoft.Build.Engine.OM.UnitTests (5)
Construction\ConstructionEditing_Tests.cs (1)
3239var updatedContents = File.ReadAllText(updated);
Construction\ProjectFormatting_Tests.cs (1)
698string actualContents = File.ReadAllText(file);
Construction\ProjectRootElement_Tests.cs (1)
614string actual = File.ReadAllText(file);
ExceptionHandling.cs (1)
400builder.Append(File.ReadAllText(file));
ManagedFileSystem.cs (1)
51return File.ReadAllText(path);
Microsoft.Build.Engine.UnitTests (8)
BackEnd\DebugUtils_tests.cs (1)
36File.ReadAllText(exceptionFile).ShouldContain("hello world");
BinaryLogger_Tests.cs (5)
361string text = File.ReadAllText(Path.Combine(logFolder.Path, "logFile.log")); 420string text = File.ReadAllText(Path.Combine(logFolder.Path, "logFile.log")); 424string text2 = File.ReadAllText(Path.Combine(logFolder.Path, "logFile2.log")); 429text = File.ReadAllText(Path.Combine(logFolder.Path, "logFile3.log")); 433text2 = File.ReadAllText(Path.Combine(logFolder.Path, "logFile4.log"));
FileLogger_Tests.cs (2)
43string log = File.ReadAllText(logFile); 415string log = File.ReadAllText(logFile.Path);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
119string existingContents = File.ReadAllText(targetFileName);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
119string existingContents = File.ReadAllText(targetFileName);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (9)
CopyRefAssemblyTests.cs (2)
77Assert.Equal("test", File.ReadAllText(dest)); 104Assert.Equal("test", File.ReadAllText(dest.Path));
DotNetSdkTests.cs (6)
113File.ReadAllText(sourceLinkJsonPath)); 152File.ReadAllText(sourceLinkJsonPath)); 190File.ReadAllText(sourceLinkJsonPath)); 228File.ReadAllText(sourceLinkJsonPath)); 268File.ReadAllText(sourceLinkJsonPath)); 308File.ReadAllText(sourceLinkJsonPath));
GenerateMSBuildEditorConfigTests.cs (1)
378Assert.Equal(expectedContents, File.ReadAllText(fileName));
Microsoft.Build.Tasks.Core (5)
CodeTaskFactory.cs (1)
752_sourceCode = File.ReadAllText(_sourcePath);
ExceptionHandling.cs (1)
400builder.Append(File.ReadAllText(file));
FileIO\WriteLinesToFile.cs (1)
113string existingContents = System.IO.File.ReadAllText(File.ItemSpec);
ManagedFileSystem.cs (1)
51return File.ReadAllText(path);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
443taskInfo.SourceCode = File.ReadAllText(sourceAttribute.Value.Trim());
Microsoft.Build.Tasks.UnitTests (48)
Copy_Tests.cs (18)
730string destinationContent = File.ReadAllText(destination); 797string destinationContent = File.ReadAllText(destination); 931string destinationContent = File.ReadAllText(destination); 1003string destinationContent1 = File.ReadAllText(destination1); 1005string destinationContent2 = File.ReadAllText(destination2); 1151Assert.Equal("This is a source temp file.", File.ReadAllText(destinationFile)); 2578string destinationFileContents = File.ReadAllText(destFile); 2592destinationFileContents = File.ReadAllText(destFile); 2675string destinationFileContents = File.ReadAllText(destFile1); 2677destinationFileContents = File.ReadAllText(destFile2); 2693destinationFileContents = File.ReadAllText(destFile1); 2770string destinationFileContents = File.ReadAllText(destFile); 2784destinationFileContents = File.ReadAllText(destFile); 2835string destinationFileContents = File.ReadAllText(destFile); 2850destinationFileContents = File.ReadAllText(destFile); 2960File.ReadAllText(destFile).ShouldBe("This is the first source temp file."); 2977File.ReadAllText(destFile).ShouldBe("This is the second source temp file."); 2980File.ReadAllText(sourceFile1.Path).ShouldBe("This is the first source temp file.");
DownloadFile_Tests.cs (3)
81File.ReadAllText(file.FullName).ShouldBe("Success!"); 126File.ReadAllText(file.FullName).ShouldBe("Success!"); 160File.ReadAllText(file.FullName).ShouldBe("Success!");
GenerateBindingRedirects_Tests.cs (2)
336SourceAppConfigContent = File.ReadAllText(appConfigFile), 337TargetAppConfigContent = File.ReadAllText(outputAppConfig),
PortableTasks_Tests.cs (1)
65_outputHelper.WriteLine(File.ReadAllText(projFile));
RARPrecomputedCache_Tests.cs (2)
39int standardLen = File.ReadAllText(standardCache.Path).Length; 48int preLen = File.ReadAllText(precomputedPath).Length;
ResolveAssemblyReference_CustomCultureTests.cs (1)
45var projBContent = File.ReadAllText(Path.Combine(testAssetsPath, projectBName))
ResourceHandling\GenerateResource_Tests.cs (5)
1553Assert.DoesNotContain("namespace", File.ReadAllText(t.StronglyTypedFileName)); 1610string generatedSource = File.ReadAllText(t.StronglyTypedFileName); 2432Assert.Contains("public class " + t.StronglyTypedClassName, File.ReadAllText(t.StronglyTypedFileName)); 2479Assert.Contains("internal class " + t.StronglyTypedClassName, File.ReadAllText(t.StronglyTypedFileName)); 3872return File.ReadAllText(fileName);
WriteCodeFragment_Tests.cs (11)
302string content = File.ReadAllText(file); 330string content = File.ReadAllText(task.OutputFile.ItemSpec); 356string content = File.ReadAllText(task.OutputFile.ItemSpec); 433string content = File.ReadAllText(file); 509string content = File.ReadAllText(task.OutputFile.ItemSpec); 533string content = File.ReadAllText(task.OutputFile.ItemSpec); 565string content = File.ReadAllText(task.OutputFile.ItemSpec); 601string content = File.ReadAllText(task.OutputFile.ItemSpec); 704string content = File.ReadAllText(task.OutputFile.ItemSpec); 737string content = File.ReadAllText(task.OutputFile.ItemSpec); 1104string content = File.ReadAllText(task.OutputFile.ItemSpec);
WriteLinesToFile_Tests.cs (3)
331File.ReadAllText(file.Path).ShouldNotBeEmpty(); 342File.ReadAllText(file.Path).ShouldBeEmpty(); 368File.ReadAllText(file.Path).ShouldBeEmpty();
XmlPoke_Tests.cs (2)
210string result = File.ReadAllText(xmlInputPath); 363string result = File.ReadAllText(xmlInputPath);
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
508string contents = File.ReadAllText(file.FullName);
Microsoft.Build.Utilities.Core (2)
ExceptionHandling.cs (1)
400builder.Append(File.ReadAllText(file));
ManagedFileSystem.cs (1)
51return File.ReadAllText(path);
Microsoft.Build.Utilities.UnitTests (2)
ToolTask_Tests.cs (2)
865File.ReadAllText(output.Path).ShouldContain("łoł"); 869File.ReadAllText(output.Path).ShouldContain("lol");
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (17)
CommandLineTests.cs (2)
11825var content = File.ReadAllText(doc); 11946var content = File.ReadAllText(doc);
SarifErrorLoggerTests.cs (9)
55var actualOutput = File.ReadAllText(errorLogFile).Trim(); 88var actualOutput = File.ReadAllText(errorLogFile).Trim(); 123var actualOutput = File.ReadAllText(errorLogFile).Trim(); 157var actualOutput = File.ReadAllText(errorLogFile).Trim(); 193var actualOutput = File.ReadAllText(errorLogFile).Trim(); 228var actualOutput = File.ReadAllText(errorLogFile).Trim(); 263var actualOutput = File.ReadAllText(errorLogFile).Trim(); 298var actualOutput = File.ReadAllText(errorLogFile).Trim(); 330var actualOutput = File.ReadAllText(errorLogFile).Trim();
SarifV2ErrorLoggerTests.cs (4)
463var actualOutput = File.ReadAllText(errorLogFile).Trim(); 545var actualOutput = File.ReadAllText(errorLogFile).Trim(); 615var actualOutput = File.ReadAllText(errorLogFile).Trim(); 693var actualOutput = File.ReadAllText(errorLogFile).Trim();
TouchedFileLoggingTests.cs (2)
236File.ReadAllText(touchedReadPath).Trim()); 240File.ReadAllText(touchedWritesPath).Trim());
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
139var actual = File.ReadAllText(file.FilePath).Trim();
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (3)
MetadataShadowCopyProviderTests.cs (3)
232Assert.Equal("Invariant", File.ReadAllText(sc.DocumentationFile.FullPath)); 238Assert.Equal("Greek", File.ReadAllText(sc.DocumentationFile.FullPath)); 244Assert.Equal("Invariant", File.ReadAllText(sc.DocumentationFile.FullPath));
Microsoft.CodeAnalysis.Test.Utilities (1)
TempFiles\TempFile.cs (1)
111return File.ReadAllText(_path);
Microsoft.CodeAnalysis.UnitTests (3)
ShadowCopyAnalyzerPathResolverTests.cs (3)
67Assert.Equal("test", File.ReadAllText(shadowPath)); 96Assert.Equal("group1-analyzer.dll", File.ReadAllText(group1ShadowPath)); 97Assert.Equal("group2-analyzer.dll", File.ReadAllText(group2ShadowPath));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (8)
CommandLineTests.vb (2)
9378Dim content = File.ReadAllText(doc) 9501Dim content = File.ReadAllText(doc)
SarifErrorLoggerTests.vb (4)
64Dim actualOutput = File.ReadAllText(errorLogFile).Trim() 103Dim actualOutput = File.ReadAllText(errorLogFile).Trim() 145Dim actualOutput = File.ReadAllText(errorLogFile).Trim() 187Dim actualOutput = File.ReadAllText(errorLogFile).Trim()
TouchedFileLoggingTests.vb (2)
194File.ReadAllText(touchedReadPath).Trim()) 198File.ReadAllText(touchedWritesPath).Trim())
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\SolutionFileReader.SolutionFilterReader.cs (1)
27using var document = JsonDocument.Parse(File.ReadAllText(filterFilename));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (14)
NetCoreTests.cs (1)
107var content = File.ReadAllText(projectFilePath);
VisualStudioMSBuildWorkspaceTests.cs (13)
1985var text = File.ReadAllText(fooDoc.FilePath); 2013var textOnDisk = File.ReadAllText(document2.FilePath); 2017var projectFileText = File.ReadAllText(project2.FilePath); 2055var textOnDisk = File.ReadAllText(document2.FilePath); 2114var textOnDisk = File.ReadAllText(document.FilePath); 2141var textOnDisk = File.ReadAllText(document.FilePath); 2167var textOnDisk = File.ReadAllText(document2.FilePath); 2914var projFileText = File.ReadAllText(projFile); 2927projFileText = File.ReadAllText(projFile); 2932projFileText = File.ReadAllText(projFile); 2942var projFileText = File.ReadAllText(projFile); 2955projFileText = File.ReadAllText(projFile); 2962projFileText = File.ReadAllText(projFile);
Microsoft.DotNet.Arcade.Sdk (3)
src\CheckRequiredDotNetVersion.cs (1)
73globalJson = File.ReadAllText(globalJsonPath);
src\InstallDotNetCore.cs (1)
56var jsonContent = File.ReadAllText(GlobalJsonPath);
src\LocateDotNet.cs (1)
58var globalJson = File.ReadAllText(globalJsonPath);
Microsoft.DotNet.Arcade.Sdk.Tests (2)
GenerateResxSourceTests.cs (2)
57var actualFileContents = File.ReadAllText(actualFile); 59Assert.Equal(File.ReadAllText(expectedFile), actualFileContents, ignoreLineEndingDifferences: true);
Microsoft.DotNet.Build.Tasks.Feed (2)
src\PublishArtifactsInManifest.cs (2)
352X509CertificateLoader.LoadPkcs12(Convert.FromBase64String(File.ReadAllText(AkaMSClientCertificate)), password: null) : null, 402X509CertificateLoader.LoadPkcs12(Convert.FromBase64String(File.ReadAllText(AkaMSClientCertificate)), password: null) : null,
Microsoft.DotNet.Build.Tasks.Installers (3)
src\BuildFPMToolPreReqs.cs (2)
72string str = File.ReadAllText(changelogFile); 100string str = File.ReadAllText(copyrightFile);
src\CreateRpmPackage.cs (1)
116builder.AddScript(script.GetMetadata("Kind"), File.ReadAllText(script.ItemSpec));
Microsoft.DotNet.Build.Tasks.Packaging (3)
GetRuntimeJsonValues.cs (1)
34JObject jObject = JObject.Parse(File.ReadAllText(JsonFilename));
GetRuntimeTargets.cs (1)
33JObject jObject = JObject.Parse(File.ReadAllText(JsonFilename));
PackageMetadata.cs (1)
18string packageMetadata = File.ReadAllText(path);
Microsoft.DotNet.Build.Tasks.Templating (1)
GenerateFileFromTemplate.cs (1)
68string template = File.ReadAllText(TemplateFile);
Microsoft.DotNet.Build.Tasks.Templating.Tests (4)
GenerateFileFromTemplateTests.cs (4)
27Assert.Equal(ReadAllText("Directory.Build.props.in").Replace("${DefaultNetCoreTargetFramework}", "net6.0"), File.ReadAllText(filePath)); 55Assert.Equal(ReadAllText("Directory.Build.props.in").Replace("${DefaultNetCoreTargetFramework}", string.Empty), File.ReadAllText(filePath)); 80Assert.Equal(ReadAllText(filename), File.ReadAllText(filePath)); 99return File.ReadAllText(path);
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\FindLatestDrop.cs (1)
41DropName = GetLatestDropName(File.ReadAllText(DropListPath));
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (6)
OptProf\GenerateTrainingInputFilesTests.cs (4)
178var json = File.ReadAllText(Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations\DDRIT.RPS.CSharp.CSharpTest.BuildAndDebugging\System.Collections.Immutable.0.IBC.json")); 189json = File.ReadAllText(Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations\DDRIT.RPS.CSharp.CSharpTest.BuildAndDebugging\System.Collections.Immutable.1.IBC.json")); 200json = File.ReadAllText(Path.Combine(outputDir, @"DDRIT.RPS.CSharp\Configurations\DDRIT.RPS.CSharp.CSharpTest.EditingAndDesigner\xyzMicrosoft.CodeAnalysis.CSharp.0.IBC.json")); 210json = File.ReadAllText(Path.Combine(outputDir, @"TeamEng\Configurations\TeamEng.OptProfTest.vs_debugger_start_no_build_cs_scribble\xyzMicrosoft.CodeAnalysis.VisualBasic.0.IBC.json"));
OptProf\GenerateTrainingPropsFileTests.cs (2)
27var actual = File.ReadAllText(Path.Combine(dir, "dotnet.roslyn.props")); 55var actual = File.ReadAllText(Path.Combine(dir, "ProfilingInputs.props"));
Microsoft.DotNet.Build.Tasks.Workloads (1)
Utils.cs (1)
71string content = File.ReadAllText(fileName);
Microsoft.DotNet.Build.Tasks.Workloads.Tests (21)
CreateVisualStudioWorkloadSetTests.cs (2)
71string msiSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(workloadSetSwixItem.ItemSpec), "msi.swr")); 82string packageGroupSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(workloadSetPackageGroupSwixItem.ItemSpec), "packageGroup.swr"));
CreateVisualStudioWorkloadTests.cs (6)
94string componentSwr = File.ReadAllText( 99string previewComponentSwr = File.ReadAllText( 128string manifestMsiSwr = File.ReadAllText(Path.Combine(baseIntermediateOutputPath, "src", "swix", "6.0.200", "Emscripten.Manifest-6.0.200", "x64", "msi.swr")); 144string packMsiSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(pythonPackSwixItem.ItemSpec), "msi.swr")); 229string componentSwr = File.ReadAllText( 250string manifestMsiSwr = File.ReadAllText(Path.Combine(baseIntermediateOutputPath, "src", "swix", "6.0.200", "Emscripten.Manifest-6.0.200", "arm64", "msi.swr"));
SwixComponentTests.cs (11)
31string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 35string componentResSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.res.swr")); 60string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 65string componentResSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.res.swr")); 89string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 94string componentResSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.res.swr")); 115string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 129string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 158string componentResSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.res.swr")); 174string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr")); 189string componentSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "component.swr"));
SwixPackageGroupTests.cs (1)
37string packageGroupSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(packageGroupItem.ItemSpec), "packageGroup.swr"));
SwixPackageTests.cs (1)
62string msiSwr = File.ReadAllText(Path.Combine(Path.GetDirectoryName(swixProj), "msi.swr"));
Microsoft.DotNet.Deployment.Tasks.Links (1)
Microsoft.DotNet.GenAPI (1)
GenAPITask.cs (1)
266return File.ReadAllText(headerFile);
Microsoft.DotNet.GenFacades (2)
NotSupportedAssemblyGenerator.cs (1)
79syntaxTree = CSharpSyntaxTree.ParseText(File.ReadAllText(sourceFile), new CSharpParseOptions(languageVersion));
TypeParser.cs (1)
147SyntaxTree tree = CSharpSyntaxTree.ParseText(File.ReadAllText(sourceFile), options);
Microsoft.DotNet.Helix.JobSender (2)
Payloads\ArchivePayload.cs (1)
40return File.ReadAllText(alreadyUploadedFile.FullName);
Payloads\DirectoryPayload.cs (1)
50return File.ReadAllText(alreadyUploadedFile.FullName);
Microsoft.DotNet.RemoteExecutor (1)
RemoteInvokeHandle.cs (1)
232throw new RemoteExecutionException("Remote process failed with an unhandled exception.", File.ReadAllText(Options.ExceptionFile));
Microsoft.DotNet.SignCheckLibrary (1)
Verification\JavaScriptVerifier.cs (1)
25string content = File.ReadAllText(path);
Microsoft.DotNet.SourceBuild.Tasks (4)
src\UsageReport\WritePackageUsageData.cs (1)
276var root = JObject.Parse(File.ReadAllText(path));
src\UsageReport\WriteUsageReports.cs (3)
63UsageData data = UsageData.Parse(XElement.Parse(File.ReadAllText(DataFile))); 81var xml = XElement.Parse(File.ReadAllText(ProdConBuildManifestFile)); 173var content = File.ReadAllText(item.ItemSpec);
Microsoft.Extensions.DependencyModel (1)
FileWrapper.cs (1)
19return File.ReadAllText(path);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Linux\Resources\FileNamesOnlyFileSystem.cs (2)
41var c = File.ReadAllText($"{_directory}/{file.Name}"); 48var c = File.ReadAllText($"{_directory}/{file.Name}");
Microsoft.Extensions.ServiceDiscovery.Dns (1)
DnsSrvServiceEndpointProviderFactory.cs (1)
80return File.ReadAllText(s_serviceAccountNamespacePath).Trim();
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
GeneratorTests.cs (4)
68var d = await RunGenerator(File.ReadAllText(inputFile), tmp, options); 71var golden = File.ReadAllText(goldenReportFile); 72var generated = File.ReadAllText(tmp); 93_ = await RunGenerator(File.ReadAllText(inputFile), goldenReportFile, options);
Microsoft.Gen.ContextualOptions.Unit.Tests (21)
EmitterTests.cs (7)
27.ParseCompilationUnit(File.ReadAllText("TestClasses/Struct1.cs")) 46.ParseCompilationUnit(File.ReadAllText("TestClasses/Class2A.cs")) 50.ParseCompilationUnit(File.ReadAllText("TestClasses/Class2B.cs")) 78.ParseCompilationUnit(File.ReadAllText("TestClasses/Record1.cs")) 106.ParseCompilationUnit(File.ReadAllText("TestClasses/NamespacelessRecord.cs")) 133sources.Add(File.ReadAllText(file)); 149var golden = File.ReadAllText($"GoldenFiles/Microsoft.Gen.ContextualOptions/Microsoft.Gen.ContextualOptions.ContextualOptionsGenerator/ContextualOptions.g.cs");
ParserTests.cs (5)
24File.ReadAllText("TestClasses/ClassWithUnusableProperties.txt"), 41File.ReadAllText("TestClasses/NamespacelessRecord.cs"), 58File.ReadAllText("TestClasses/NonPartialClass.txt"), 73File.ReadAllText("TestClasses/StaticClass.txt"), 88File.ReadAllText("TestClasses/RefStruct.txt"),
SyntaxContextReceiverTests.cs (9)
24File.ReadAllText("TestClasses/Class1.cs"), 25File.ReadAllText("TestClasses/Struct1.cs"), 26File.ReadAllText("TestClasses/Record1.cs"), 47File.ReadAllText("TestClasses/Class1.cs"), 48File.ReadAllText("TestClasses/Struct1.cs"), 49File.ReadAllText("TestClasses/Record1.cs"), 63File.ReadAllText("TestClasses/Class2A.cs"), 64File.ReadAllText("TestClasses/Class2B.cs"), 83var sources = new[] { File.ReadAllText("TestClasses/ClassWithNoAttribute.cs"), };
Microsoft.Gen.Logging.Unit.Tests (1)
EmitterTests.cs (1)
28sources.Add(File.ReadAllText(file));
Microsoft.Gen.Metrics.Unit.Tests (3)
EmitterTests.cs (3)
26sources.Add(File.ReadAllText(file)); 46var goldenCache = File.ReadAllText($"{generatedContentPath}/Factory.g.cs"); 47var goldenMetrics = File.ReadAllText($"{generatedContentPath}/Metrics.g.cs");
Microsoft.ML.AutoML.Tests (1)
TrialResultManagerTest.cs (1)
80var fileContent = File.ReadAllText(tempFilePath);
Microsoft.ML.EntryPoints (1)
JsonUtils\ExecuteGraphCommand.cs (1)
54graph = JObject.Parse(File.ReadAllText(_path));
Microsoft.ML.GenAI.LLaMA (2)
LlamaForCausalLM.cs (2)
103var modelConfig = JsonSerializer.Deserialize<LlamaConfig>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config)); 136var modelConfig = JsonSerializer.Deserialize<LlamaConfig>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Microsoft.ML.GenAI.Mistral (2)
MistralForCausalLM.cs (2)
58var modelConfig = JsonSerializer.Deserialize<MistralConfig>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config)); 86var modelConfig = JsonSerializer.Deserialize<MistralConfig>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Microsoft.ML.GenAI.Phi (3)
Phi2\Phi2ForCasualLM.cs (1)
59var modelConfig = JsonSerializer.Deserialize<Phi2Config>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Phi3\Phi3ForCasualLM.cs (2)
60var modelConfig = JsonSerializer.Deserialize<Phi3Config>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config)); 88var modelConfig = JsonSerializer.Deserialize<Phi3Config>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Microsoft.ML.GenAI.Samples (1)
Mistral\Mistral_7B_Instruct.cs (1)
76var mistralConfig = JsonSerializer.Deserialize<MistralConfig>(File.ReadAllText(Path.Combine(weightFolder, configName))) ?? throw new ArgumentNullException(nameof(configName));
Microsoft.ML.Tests (2)
OnnxConversionTest.cs (2)
450var fileText = File.ReadAllText(onnxTextPath); 2288var fileText = File.ReadAllText(textFormatPath);
Microsoft.ML.Tokenizers.Tests (2)
BpeTests.cs (1)
386string jsonString = File.ReadAllText(vocabFile);
TiktokenTests.cs (1)
638string text = File.ReadAllText(path);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
357Return IO.File.ReadAllText(file)
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (1)
19string actualData = File.ReadAllText(FileNameWithPath);
Microsoft.VisualStudio.LanguageServices (1)
EditAndContinue\EditAndContinueFeedbackDiagnosticFileProvider.cs (1)
150var content = File.ReadAllText(semaphoreFilePath);
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
302text = SourceText.From(File.ReadAllText(document.FilePath));
MSBuild (2)
ExceptionHandling.cs (1)
400builder.Append(File.ReadAllText(file));
ManagedFileSystem.cs (1)
51return File.ReadAllText(path);
MSBuildTaskHost (2)
ExceptionHandling.cs (1)
400builder.Append(File.ReadAllText(file));
FileSystem\MSBuildTaskHostFileSystem.cs (1)
58return File.ReadAllText(path);
Mvc.Api.Analyzers.Test (1)
Infrastructure\MvcTestSource.cs (1)
21var fileContent = File.ReadAllText(filePath);
Roslyn.Compilers.Extension (1)
CompilerPackage.cs (1)
122if (File.Exists(fileAndContents.Key) && File.ReadAllText(fileAndContents.Key) == fileAndContents.Value)
Roslyn.Test.Performance.Utilities (2)
Benchview.cs (1)
93System.Console.Write(System.IO.File.ReadAllText(submissionJson));
VsPerfTest.cs (1)
60var template = File.ReadAllText(taoTestFileTemplatePath);
RulesetToEditorconfigConverter.UnitTests (1)
RulesetToEditorconfigConverterTests.cs (1)
35var actualEditorConfigText = File.ReadAllText(editorconfigPath).Trim();
RunTests (3)
AssemblyScheduler.cs (1)
257var deserialized = JsonSerializer.Deserialize<List<string>>(File.ReadAllText(testListPath));
HelixTestRunner.cs (1)
386var globalJson = JsonConvert.DeserializeAnonymousType(File.ReadAllText(globalJsonFilePath), new { sdk = new { version = "" } })
ProcessTestExecutor.cs (1)
163resultData = File.ReadAllText(resultsFilePath).Trim();
ServerComparison.FunctionalTests (1)
Helpers.cs (1)
35var content = File.ReadAllText(Path.Combine(applicationBasePath, nginxConfig));
Stress.ApiService (2)
Program.cs (2)
218var xmlLarge = File.ReadAllText(Path.Combine("content", "books.xml")); 225var jsonLarge = File.ReadAllText(Path.Combine("content", "example.json"));
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
132try { return File.ReadAllText(path).Trim(); }
System.Net.NetworkInformation (4)
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
56string resolverConfig = File.ReadAllText(NetworkFiles.EtcResolvConfFile);
System\Net\NetworkInformation\StringParsingHelpers.Misc.cs (1)
31return File.ReadAllText(filePath);
System\Net\NetworkInformation\UnixIPInterfaceProperties.cs (2)
91return StringParsingHelpers.ParseDnsSuffixFromResolvConfFile(File.ReadAllText(NetworkFiles.EtcResolvConfFile)); 103List<IPAddress> internalAddresses = StringParsingHelpers.ParseDnsAddressesFromResolvConfFile(File.ReadAllText(NetworkFiles.EtcResolvConfFile));
System.Private.Windows.Core.TestUtilities (1)
TempFile.cs (1)
66public string ReadAllText() => File.ReadAllText(Path);
System.Security.Cryptography (8)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (6)
1111/// See <see cref="System.IO.File.ReadAllText(string)" /> for additional documentation about 1137ReadOnlySpan<char> certContents = File.ReadAllText(certPemFilePath); 1138ReadOnlySpan<char> keyContents = keyPemFilePath is null ? certContents : File.ReadAllText(keyPemFilePath); 1180/// See <see cref="System.IO.File.ReadAllText(string)" /> for additional documentation about 1203ReadOnlySpan<char> certContents = File.ReadAllText(certPemFilePath); 1204ReadOnlySpan<char> keyContents = keyPemFilePath is null ? certContents : File.ReadAllText(keyPemFilePath);
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (2)
392/// See <see cref="System.IO.File.ReadAllText(string)" /> for additional documentation about 415ReadOnlySpan<char> contents = System.IO.File.ReadAllText(certPemFilePath);
System.Windows.Forms.Analyzers.Tests (2)
CurrentReferences.cs (2)
141string globalJsonString = File.ReadAllText(globalJsonPath); 154string configJsonString = File.ReadAllText(configJsonPath);
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
190string jsonContents = File.ReadAllText(jsonFile);
System.Windows.Forms.UI.IntegrationTests (3)
DragDropTests.cs (3)
160richTextBox.Rtf = File.ReadAllText(dragAcceptRtfDestPath); 428richTextBox.Rtf = File.ReadAllText(dragAcceptRtfPath); 458richTextBox.Rtf = File.ReadAllText(dragAcceptRtfPath);
Templates.Blazor.Tests (4)
BlazorWasmTemplateTest.cs (1)
131return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
111return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\Project.cs (2)
274var contents = File.ReadAllText(file); 411return File.ReadAllText(Path.Combine(TemplateOutputDir, path));
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
111return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\Project.cs (2)
274var contents = File.ReadAllText(file); 411return File.ReadAllText(Path.Combine(TemplateOutputDir, path));
Templates.Blazor.WebAssembly.Tests (3)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
111return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\Project.cs (2)
274var contents = File.ReadAllText(file); 411return File.ReadAllText(Path.Combine(TemplateOutputDir, path));
Templates.Mvc.Tests (4)
RazorPagesTemplateTest.cs (1)
314return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
111return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\Project.cs (2)
274var contents = File.ReadAllText(file); 411return File.ReadAllText(Path.Combine(TemplateOutputDir, path));
Templates.Tests (4)
IdentityUIPackageTest.cs (1)
165return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
111return File.ReadAllText(Path.Combine(basePath, path));
src\ProjectTemplates\Shared\Project.cs (2)
274var contents = File.ReadAllText(file); 411return File.ReadAllText(Path.Combine(TemplateOutputDir, path));
VBCSCompiler.UnitTests (2)
TouchedFileLoggingTests.cs (2)
188File.ReadAllText(touchedReadPath).Trim()); 192File.ReadAllText(touchedWritesPath).Trim());
WinFormsControlsTest (1)
DragDrop.cs (1)
410return File.ReadAllText(nyanCatAsciiPath);
xunit.console (1)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\FileWrapper.cs (1)
18return File.ReadAllText(path);