3 implementations of ReadAllText
dotnet.Tests (1)
ConfigurerTests\GivenAFunctionReturnStringAndFakeFileSystem.cs (1)
99public string ReadAllText(string path)
Microsoft.DotNet.InternalAbstractions (1)
FileWrapper.cs (1)
13public string ReadAllText(string path)
Microsoft.NET.TestFramework (1)
Mock\FileSystemMockBuilder.cs (1)
360public string ReadAllText(string path)
40 references to ReadAllText
dotnet (2)
ToolPackage\LocalToolsResolverCache.cs (1)
97JsonSerializer.Deserialize<CacheRow[]>(_fileSystem.File.ReadAllText(packageCacheFile));
ToolPackage\ToolPackageDownloaderBase.cs (1)
385string existingJson = _fileSystem.File.ReadAllText(runtimeConfigFilePath);
dotnet.Tests (29)
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (3)
151_fileSystem.File.ReadAllText(ExpectedCommandPath())); 218_fileSystem.File.ReadAllText(ExpectedCommandPath())); 891_fileSystem.File.ReadAllText(ExpectedCommandPath()).Should().Be(tokenToIdentifyPackagedShim);
CommandTests\Tool\Install\ToolInstallLocalCommandTests.cs (4)
216_fileSystem.File.ReadAllText(_manifestFilePath).Should() 237_fileSystem.File.ReadAllText(_manifestFilePath).Should() 289_fileSystem.File.ReadAllText(_manifestFilePath).Should() 339var configManifestContent = _fileSystem.File.ReadAllText(configManifestPath);
CommandTests\Tool\Uninstall\ToolUninstallLocalCommandTests.cs (6)
57_fileSystem.File.ReadAllText(_manifestFilePath).Should().Be(_entryRemovedJsonContent); 106_fileSystem.File.ReadAllText(explicitManifestFilePath).Should().Be(_entryRemovedJsonContent); 124_fileSystem.File.ReadAllText(_manifestFilePath).Should().Be(_entryRemovedJsonContent); 147_fileSystem.File.ReadAllText(_manifestFilePath).Should().Be(_entryRemovedJsonContent, "Change the closest one"); 148_fileSystem.File.ReadAllText(parentManifestFilePath).Should().Be(_jsonContent, "Do not change the manifest layer above"); 160_fileSystem.File.ReadAllText(parentManifestFilePath).Should().Be(
CommandTests\Tool\Update\ToolUpdateGlobalOrToolPathCommandTests.cs (1)
438_fileSystem.File.ReadAllText(ExpectedCommandPath()).Should().Be(tokenToIdentifyPackagedShim);
CommandTests\Tool\Update\ToolUpdateLocalCommandTests.cs (1)
326_fileSystem.File.ReadAllText(parentManifestFilePath).Should().Be(_jsonContent, "no change");
ConfigurerTests\GivenAFirstTimeUseNoticeSentinel.cs (1)
91fileSystemMock.File.ReadAllText(sentinel).Should().Be(contentToValidateSentinelWasNotReplaced);
ConfigurerTests\GivenAFunctionReturnStringAndFakeFileSystem.cs (2)
57_fileSystemMock.File.ReadAllText(path).Should().Be("foo"); 66_fileSystemMock.File.ReadAllText(cacheFilePath).Should().Be("foo");
ShellShimTests\LinuxEnvironmentPathTests.cs (1)
148.ReadAllText(LinuxEnvironmentPath.DotnetCliToolsProfilePath)
ShellShimTests\OsxEnvironmentPathTests.cs (1)
148.ReadAllText(OsxBashEnvironmentPath.DotnetCliToolsPathsDPath)
ToolManifestTests\ToolManifestEditorTests.cs (9)
39_fileSystem.File.ReadAllText(manifestFile).Should().Be( 82_fileSystem.File.ReadAllText(manifestFile).Should().Be( 122_fileSystem.File.ReadAllText(manifestFile).Should().Be(_jsonContent); 142_fileSystem.File.ReadAllText(manifestFile).Should().Be(_jsonContent); 166_fileSystem.File.ReadAllText(manifestFile).Should().Be(_jsonWithInvalidField); 194_fileSystem.File.ReadAllText(manifestFile).Should().Be( 226_fileSystem.File.ReadAllText(manifestFile).Should().Be(_jsonContent); 247_fileSystem.File.ReadAllText(manifestFile).Should().Be(_jsonWithInvalidField); 281_fileSystem.File.ReadAllText(manifestFile).Should().Be(
Microsoft.DotNet.Cli.Utils.Tests (5)
MockFileSystemTests.cs (5)
157fileSystem.File.ReadAllText(path).Should().Be(content); 169Action a = () => fileSystem.File.ReadAllText(path); 184Action a = () => fileSystem.File.ReadAllText(directory); 295fileSystem.File.ReadAllText(sourceFile).Should().Be(fileSystem.File.ReadAllText(destinationFile));
Microsoft.DotNet.Configurer (1)
UserLevelCacheWriter.cs (1)
47return _file.ReadAllText(cacheFilepath);
Microsoft.DotNet.PackageInstall.Tests (2)
LocalToolsResolverCacheTests.cs (2)
255fileSystem.File.ReadAllText( 312fileSystem.File.ReadAllText(
Microsoft.DotNet.Tools.Tests.ComponentMocks (1)
ToolPackageMock.cs (1)
77var executablePath = _fileSystem.File.ReadAllText(Path.Combine(PackageDirectory.Value, "project.assets.json"));