168 instantiations of TestEnvironment
Aspire.Cli.Tests (168)
Acquisition\IdentityResolverTests.cs (1)
561var environment = new TestEnvironment(environmentVariables);
Acquisition\InstallationDiscoveryDiscoverAllTests.cs (7)
586environment: new TestEnvironment(), 615environment: new TestEnvironment(), 651environment: new TestEnvironment(), 694environment: new TestEnvironment(), 824environment: new TestEnvironment(), 934environment: new TestEnvironment(), 973environment: new TestEnvironment(),
Agents\CopilotCliAgentEnvironmentScannerTests.cs (8)
25var scanner = new CopilotCliAgentEnvironmentScanner(copilotCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<CopilotCliAgentEnvironmentScanner>.Instance); 46var scanner = new CopilotCliAgentEnvironmentScanner(copilotCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<CopilotCliAgentEnvironmentScanner>.Instance); 115var scanner = new CopilotCliAgentEnvironmentScanner(copilotCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<CopilotCliAgentEnvironmentScanner>.Instance); 155var scanner = new CopilotCliAgentEnvironmentScanner(copilotCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<CopilotCliAgentEnvironmentScanner>.Instance); 171var vsCodeEnvironment = new TestEnvironment(new Dictionary<string, string?> { ["TERM_PROGRAM"] = "vscode" }); 213var scanner = new CopilotCliAgentEnvironmentScanner(copilotCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<CopilotCliAgentEnvironmentScanner>.Instance); 241var scanner = new CopilotCliAgentEnvironmentScanner(copilotCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<CopilotCliAgentEnvironmentScanner>.Instance); 267var scanner = new CopilotCliAgentEnvironmentScanner(copilotCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<CopilotCliAgentEnvironmentScanner>.Instance);
Agents\TelemetryHookConfiguratorTests.cs (1)
285var environment = new TestEnvironment(environmentVariables);
Agents\VsCodeAgentEnvironmentScannerTests.cs (13)
26var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance); 44var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance); 62var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance); 76var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance); 92var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance); 110var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance); 137var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance); 193var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance); 234var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance); 265var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance); 286var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance); 314var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance); 340var scanner = new VsCodeAgentEnvironmentScanner(vsCodeCliRunner, CreatePlaywrightCliInstaller(), executionContext, new TestEnvironment(), NullLogger<VsCodeAgentEnvironmentScanner>.Instance);
Backchannel\AppHostCliBackchannelTests.cs (2)
19var environment = new TestEnvironment(new Dictionary<string, string?> 54var environment = new TestEnvironment(new Dictionary<string, string?>
BundleServiceIntegrationTests.cs (2)
488await BundleService.ExtractPayloadAsync(stream, dest, new TestEnvironment(), CancellationToken.None); 601return new BundleService(provider, layoutDiscovery, new TestEnvironment(), NullLogger<BundleService>.Instance)
Caching\AppHostInfoDiskCacheTests.cs (12)
20return new AppHostInfoDiskCache(NullLogger<AppHostInfoDiskCache>.Instance, ctx, configurationService ?? new TestConfigurationService(), new TestEnvironment()); 31return new AppHostInfoDiskCache(NullLogger<AppHostInfoDiskCache>.Instance, ctx, configurationService, new TestEnvironment()); 672var key1 = AppHostInfoDiskCache.ComputeKeyAsync(new FileInfo(projectFile.FullName), new TestEnvironment()); 673var key2 = AppHostInfoDiskCache.ComputeKeyAsync(new FileInfo(projectFile.FullName), new TestEnvironment()); 685var keyA = AppHostInfoDiskCache.ComputeKeyAsync(projectA, new TestEnvironment()); 686var keyB = AppHostInfoDiskCache.ComputeKeyAsync(projectB, new TestEnvironment()); 711var keyLower = AppHostInfoDiskCache.ComputeKeyAsync(new FileInfo(lowerPath), new TestEnvironment()); 712var keyUpper = AppHostInfoDiskCache.ComputeKeyAsync(new FileInfo(upperDrivePath), new TestEnvironment()); 731var keyBeforeImport = AppHostInfoDiskCache.ComputeKeyAsync(projectFile, new TestEnvironment()); 733var keyAfterImport = AppHostInfoDiskCache.ComputeKeyAsync(new FileInfo(projectFile.FullName), new TestEnvironment()); 755var keyBeforeParentImportEdit = AppHostInfoDiskCache.ComputeKeyAsync(projectFile, new TestEnvironment()); 760var keyAfterParentImportEdit = AppHostInfoDiskCache.ComputeKeyAsync(new FileInfo(projectFile.FullName), new TestEnvironment());
CliBootstrapTests.cs (3)
141var environment = new TestEnvironment(); 175var environment = new TestEnvironment(envVars); 197var environment = new TestEnvironment();
Commands\AppHostLauncherTests.cs (1)
1186executionContext, new TestEnvironment(),
Commands\DashboardRunCommandTests.cs (1)
637return new TestEnvironment(envVars);
Commands\TypeScriptAppHostToolingCheckTests.cs (1)
193new TestEnvironment(),
Commands\VsCodeExtensionCheckTests.cs (12)
18var environment = new TestEnvironment(new Dictionary<string, string?>()); 34var environment = new TestEnvironment(new Dictionary<string, string?> 64var environment = new TestEnvironment(new Dictionary<string, string?> 93var environment = new TestEnvironment(new Dictionary<string, string?> 118var environment = new TestEnvironment(new Dictionary<string, string?> 139var environment = new TestEnvironment(new Dictionary<string, string?> 160var environment = new TestEnvironment(new Dictionary<string, string?>()); 174var environment = new TestEnvironment(new Dictionary<string, string?>()); 190var environment = new TestEnvironment(new Dictionary<string, string?> 209var environment = new TestEnvironment(new Dictionary<string, string?> 231var environment = new TestEnvironment(new Dictionary<string, string?> 252var environment = new TestEnvironment(new Dictionary<string, string?>
Configuration\DotNetBasedAppHostServerChannelResolutionTests.cs (1)
118new TestEnvironment(),
Configuration\PrebuiltAppHostServerChannelResolutionTests.cs (2)
98new TestEnvironment(), 111new TestEnvironment(),
DotNet\ProcessExecutionDetachedTests.cs (2)
493? new ProcessExecutionFactory(new TestEnvironment(), logger ?? NullLogger<ProcessExecutionFactory>.Instance) 495new TestEnvironment(),
DotNet\ProcessExecutionFactoryEnvironmentTests.cs (1)
86=> new(new TestEnvironment(), NullLogger<ProcessExecutionFactory>.Instance);
DotNet\ProcessExecutionTests.cs (1)
411var factory = new ProcessExecutionFactory(new TestEnvironment(), NullLogger<ProcessExecutionFactory>.Instance);
DotNetSdkInstallerTests.cs (2)
33var environment = new TestEnvironment(); 308environment ??= new TestEnvironment();
Git\GitRepositoryTests.cs (4)
24var repo = new GitRepository(executionContext, new TestEnvironment(), NullLogger<GitRepository>.Instance, profilingTelemetry); 64var repo = new GitRepository(executionContext, new TestEnvironment(), NullLogger<GitRepository>.Instance, profilingTelemetry); 93var repo = new GitRepository(executionContext, new TestEnvironment(), NullLogger<GitRepository>.Instance, profilingTelemetry); 124var repo = new GitRepository(executionContext, new TestEnvironment(), NullLogger<GitRepository>.Instance, profilingTelemetry);
Layout\LayoutDiscoveryReparsePointTests.cs (1)
233var discovery = new LayoutDiscovery(NullLogger<LayoutDiscovery>.Instance, new TestEnvironment())
Npm\NpmRunnerTests.cs (9)
34var startInfo = NpmRunner.CreateNpmProcessStartInfo("/usr/bin/npm", ["view", "express", "version"], "/tmp/workdir", new TestEnvironment()); 52@"C:\temp\workdir", new TestEnvironment()); 73@"C:\temp", new TestEnvironment()); 90@"C:\temp", new TestEnvironment()); 105"/tmp/workdir", new TestEnvironment()); 121"/tmp", new TestEnvironment()); 133var startInfo = NpmRunner.CreateNpmProcessStartInfo("/usr/bin/npm", [], "/tmp", new TestEnvironment()); 144var startInfo = NpmRunner.CreateNpmProcessStartInfo(@"C:\Program Files\nodejs\npm.cmd", [], @"C:\temp", new TestEnvironment()); 165var runner = new NpmRunner(new TestEnvironment(), NullLogger<NpmRunner>.Instance, profilingTelemetry);
NuGet\BundleNuGetServiceTests.cs (9)
39new TestEnvironment(), 75new TestEnvironment(), 117new TestEnvironment(), 163new TestEnvironment(), 214new TestEnvironment(), 243new TestEnvironment(), 278new TestEnvironment(), 357new TestEnvironment(), 406new TestEnvironment(),
NuGet\NuGetSignatureVerificationEnablerTests.cs (1)
14return new TestEnvironment(envVars);
Processes\ProcessTreeGracefulShutdownServiceTests.cs (1)
337executionContext, environment ?? new TestEnvironment(),
Projects\AppHostCandidateFinderTests.cs (3)
586return new AppHostCandidateFinder(gitRepository ?? new TestGitRepository(), new TestEnvironment(), profilingTelemetry ?? CreateProfilingTelemetry(), NullLogger<AppHostCandidateFinder>.Instance); 593var gitRepository = new GitRepository(executionContext, new TestEnvironment(), NullLogger<GitRepository>.Instance, profilingTelemetry); 594return new AppHostCandidateFinder(gitRepository, new TestEnvironment(), profilingTelemetry, NullLogger<AppHostCandidateFinder>.Instance);
Projects\AppHostServerProjectTests.cs (4)
43return new DotNetBasedAppHostServerProject(appPath, socketPath, repoRoot, runner, packagingService, new TestProcessExecutionFactory(), new TestEnvironment(), logger); 315var project = new DotNetBasedAppHostServerProject(appPath, "test.sock", appPath, runner, packagingService, new TestProcessExecutionFactory(), new TestEnvironment(), logger, projectModelPath); 396new TestEnvironment(), 450new TestEnvironment(),
Projects\AppHostServerSessionTests.cs (4)
491return new ProcessExecutionFactory(new TestEnvironment(), NullLogger<ProcessExecutionFactory>.Instance) 554new TestEnvironment(), 569new TestEnvironment(), 579new TestEnvironment(),
Projects\DotNetAppHostProjectTests.cs (3)
539var environment = new TestEnvironment(new Dictionary<string, string?> 608? new TestEnvironment() 609: new TestEnvironment(environmentVariables.ToDictionary(pair => pair.Key, pair => (string?)pair.Value));
Projects\DotNetBasedAppHostServerScaffoldCacheTests.cs (1)
169new TestEnvironment(),
Projects\GuestAppHostProjectTests.cs (1)
1499environment: environment ?? new TestEnvironment(),
Projects\GuestRuntimeTests.cs (2)
33processExecutionFactory: new ProcessExecutionFactory(new TestEnvironment(), NullLogger<ProcessExecutionFactory>.Instance)); 44new TestEnvironment(),
Projects\PrebuiltAppHostServerTests.cs (5)
1284new TestEnvironment(), 1297new TestEnvironment(), 2300new TestEnvironment(), 2814new TestEnvironment(), 2955new TestEnvironment(),
Projects\ProcessGuestLauncherTests.cs (1)
27processExecutionFactory: processExecutionFactory ?? new ProcessExecutionFactory(new TestEnvironment(), _loggerFactory.CreateLogger<ProcessExecutionFactory>()));
Projects\ProjectLocatorTests.cs (5)
2941var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory, environment: new TestEnvironment(envVars)); 3009var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory, environment: new TestEnvironment(envVars)); 3049var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory, environment: new TestEnvironment(envVars)); 4173environment ?? new TestEnvironment(), 4180environment ?? new TestEnvironment(),
Projects\TypeScriptAppHostToolchainResolverTests.cs (17)
20var toolchain = TypeScriptAppHostToolchainResolver.Resolve(workspace.WorkspaceRoot, new TestEnvironment(), logger: null); 32var toolchain = TypeScriptAppHostToolchainResolver.Resolve(workspace.WorkspaceRoot, new TestEnvironment(), logger: null); 44var exception = Assert.Throws<YarnClassicNotSupportedException>(() => TypeScriptAppHostToolchainResolver.Resolve(workspace.WorkspaceRoot, new TestEnvironment(), logger: null)); 55var toolchain = TypeScriptAppHostToolchainResolver.Resolve(workspace.WorkspaceRoot, new TestEnvironment(), logger: null); 68var exception = Assert.Throws<YarnClassicNotSupportedException>(() => TypeScriptAppHostToolchainResolver.Resolve(workspace.WorkspaceRoot, new TestEnvironment(), logger: null)); 84var exception = Assert.Throws<YarnClassicNotSupportedException>(() => TypeScriptAppHostToolchainResolver.Resolve(appHostDirectory, new TestEnvironment(), logger: null)); 100var resolution = TypeScriptAppHostToolchainResolver.ResolveWithReason(appHostDirectory, new TestEnvironment()); 114var resolution = TypeScriptAppHostToolchainResolver.ResolveWithReason(workspace.WorkspaceRoot, new TestEnvironment()); 127var toolchain = TypeScriptAppHostToolchainResolver.Resolve(workspace.WorkspaceRoot, new TestEnvironment(), logger: null); 138var toolchain = TypeScriptAppHostToolchainResolver.Resolve(workspace.WorkspaceRoot, new TestEnvironment(), logger: null); 153var toolchain = TypeScriptAppHostToolchainResolver.Resolve(workspace.WorkspaceRoot, new TestEnvironment(), logger); 170var toolchain = TypeScriptAppHostToolchainResolver.Resolve(appHostDirectory, new TestEnvironment(), logger: null); 184var resolution = TypeScriptAppHostToolchainResolver.ResolveWithReason(appHostDirectory, new TestEnvironment()); 200var resolution = TypeScriptAppHostToolchainResolver.ResolveWithReason(appHostDirectory, new TestEnvironment()); 214var toolchain = TypeScriptAppHostToolchainResolver.Resolve(appHostDirectory, new TestEnvironment(), logger: null); 224var shouldSearch = TypeScriptAppHostToolchainResolver.ShouldSearchParentDirectory(directory, new TestEnvironment()); 236new TestEnvironment(),
Scaffolding\ChannelReseedTests.cs (2)
91environment: new TestEnvironment(), 124environment: new TestEnvironment(),
Scaffolding\ScaffoldingServiceTests.cs (1)
149new TestEnvironment(),
Telemetry\InternalMicrosoftDetectorTests.cs (1)
577new TestEnvironment(environmentVariables),
Utils\DeprecatedWorkloadCheckTests.cs (1)
18var environment = new TestEnvironment();
Utils\FileSystemHelperTests.cs (15)
267var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 282var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 297var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 312var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 323var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 333var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 346var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 360var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 375var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 390var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 399var result = FileSystemHelper.ShortenPaths(Array.Empty<string>(), new TestEnvironment()); 414var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 430var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 447var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 462var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment());
Utils\MissingJavaScriptToolWarningTests.cs (1)
53var message = MissingJavaScriptToolWarning.GetMessage(workspace.WorkspaceRoot, s_typeScriptLanguage, new TestEnvironment());
Utils\TestEnvironment.cs (3)
45=> new(variables) { ReportIsWindows = true, ReportIsLinux = false, ReportIsMacOS = false }; 48=> new(variables) { ReportIsWindows = false, ReportIsLinux = true, ReportIsMacOS = false }; 51=> new(variables) { ReportIsWindows = false, ReportIsLinux = false, ReportIsMacOS = true };
105 references to TestEnvironment
Aspire.Cli.Tests (105)
Acquisition\IdentityResolverTests.cs (1)
561var environment = new TestEnvironment(environmentVariables);
Agents\CopilotCliAgentEnvironmentScannerTests.cs (1)
171var vsCodeEnvironment = new TestEnvironment(new Dictionary<string, string?> { ["TERM_PROGRAM"] = "vscode" });
Agents\TelemetryHookConfiguratorTests.cs (1)
285var environment = new TestEnvironment(environmentVariables);
Backchannel\AppHostCliBackchannelTests.cs (2)
19var environment = new TestEnvironment(new Dictionary<string, string?> 54var environment = new TestEnvironment(new Dictionary<string, string?>
Certificates\CertificateServiceTests.cs (10)
90}, nonInteractive: false, environment: TestEnvironment.CreateLinux()); 117}, nonInteractive: true, environment: TestEnvironment.CreateLinux()); 204services.AddSingleton<IEnvironment>(TestEnvironment.CreateWindows()); 359services.AddSingleton<IEnvironment>(TestEnvironment.CreateWindows()); 400services.AddSingleton<IEnvironment>(TestEnvironment.CreateWindows()); 444return new CertificateService(toolRunner, interactiveService, telemetry, hostEnvironment, TestEnvironment.CreateLinux(), executionContext, logger); 491services.AddSingleton<IEnvironment>(TestEnvironment.CreateWindows()); 529services.AddSingleton<IEnvironment>(TestEnvironment.CreateWindows()); 575services.AddSingleton<IEnvironment>(TestEnvironment.CreateWindows(envVars)); 609services.AddSingleton<IEnvironment>(TestEnvironment.CreateWindows());
Certificates\NativeCertificateToolRunnerTests.cs (1)
134TestEnvironment.CreateLinux(),
Certificates\UnixCertificateManagerTests.cs (12)
33var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 80var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 115var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 150var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 185var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 220var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
CliBootstrapTests.cs (3)
141var environment = new TestEnvironment(); 175var environment = new TestEnvironment(envVars); 197var environment = new TestEnvironment();
Commands\CertificatesCommandTests.cs (1)
105return new CertificateService(toolRunner, interactionService, telemetry, hostEnvironment, TestEnvironment.CreateLinux(), executionContext, logger);
Commands\VsCodeExtensionCheckTests.cs (12)
18var environment = new TestEnvironment(new Dictionary<string, string?>()); 34var environment = new TestEnvironment(new Dictionary<string, string?> 64var environment = new TestEnvironment(new Dictionary<string, string?> 93var environment = new TestEnvironment(new Dictionary<string, string?> 118var environment = new TestEnvironment(new Dictionary<string, string?> 139var environment = new TestEnvironment(new Dictionary<string, string?> 160var environment = new TestEnvironment(new Dictionary<string, string?>()); 174var environment = new TestEnvironment(new Dictionary<string, string?>()); 190var environment = new TestEnvironment(new Dictionary<string, string?> 209var environment = new TestEnvironment(new Dictionary<string, string?> 231var environment = new TestEnvironment(new Dictionary<string, string?> 252var environment = new TestEnvironment(new Dictionary<string, string?>
Commands\WslEnvironmentCheckTests.cs (9)
292var check = new WslEnvironmentCheck(TestEnvironment.CreateMacOS(), () => Wsl1Banner); 330var check = new WslEnvironmentCheck(TestEnvironment.CreateLinux(), () => procVersion); 340var check = new WslEnvironmentCheck(TestEnvironment.CreateLinux(), () => procVersion); 350var check = new WslEnvironmentCheck(TestEnvironment.CreateLinux(), () => procVersion); 372var check = new WslEnvironmentCheck(TestEnvironment.CreateLinux(), () => Wsl1Banner); 383var check = new WslEnvironmentCheck(TestEnvironment.CreateLinux(), () => HistoricalWsl1Banner); 541private static TestEnvironment CreateLinuxEnvironment(string? distroName, string? wslInterop = null) 545return TestEnvironment.CreateLinux(); 560return TestEnvironment.CreateLinux(environmentVariables);
DotNetSdkInstallerTests.cs (1)
33var environment = new TestEnvironment();
Processes\ProcessTreeGracefulShutdownServiceTests.cs (1)
170environment: TestEnvironment.CreateWindows());
Projects\DotNetAppHostProjectTests.cs (2)
539var environment = new TestEnvironment(new Dictionary<string, string?> 607var inheritedEnvironment = useExplicitOverlay
Projects\GuestAppHostProjectTests.cs (4)
1559var project = CreateGuestAppHostProject(environment: TestEnvironment.CreateWindows()); 1590var project = CreateGuestAppHostProject(environment: TestEnvironment.CreateMacOS()); 1645var environment = TestEnvironment.CreateWindows(new Dictionary<string, string?>
Projects\ProjectLocatorTests.cs (4)
358Assert.True(ProjectLocator.IsSamePersistedAppHostPath(configuredPath, selectedPath, TestEnvironment.CreateWindows())); 359Assert.False(ProjectLocator.IsSamePersistedAppHostPath(configuredPath, selectedPath, TestEnvironment.CreateLinux())); 360Assert.False(ProjectLocator.IsSamePersistedAppHostPath(configuredPath, selectedPath, TestEnvironment.CreateMacOS())); 2549var result = ProjectLocator.IsUnderDirectory(file, directory, TestEnvironment.CreateMacOS());
Projects\TypeScriptAppHostToolchainResolverTests.cs (3)
249TestEnvironment.CreateWindows(), 262TestEnvironment.CreateMacOS(), 275TestEnvironment.CreateLinux(),
Utils\CliTestHelper.cs (1)
224services.AddSingleton<IEnvironment, TestEnvironment>();
Utils\DeprecatedWorkloadCheckTests.cs (1)
18var environment = new TestEnvironment();
Utils\DevCertsCheckTests.cs (32)
341var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 376var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 422var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 466var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 517var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 572var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 622var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 681var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 738var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 779var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 823var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 869var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 915var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 961var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 1004var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 1040var environment = TestEnvironment.CreateMacOS(new Dictionary<string, string?>
Utils\TestEnvironment.cs (3)
44public static TestEnvironment CreateWindows(IReadOnlyDictionary<string, string?>? variables = null) 47public static TestEnvironment CreateLinux(IReadOnlyDictionary<string, string?>? variables = null) 50public static TestEnvironment CreateMacOS(IReadOnlyDictionary<string, string?>? variables = null)