28 instantiations of PowerShellCommand
Infrastructure.Tests (28)
BuildWarningPolicyTests.cs (1)
324return new PowerShellCommand(script, output)
MicrosoftTestingPlatformTests.cs (2)
28using var command = new PowerShellCommand(script, output) 56using var command = new PowerShellCommand(script, output)
Pipelines\ExtensionE2eRecorderStepTests.cs (1)
72using var command = new PowerShellCommand(scriptPath, testOutput, label: aptBehavior)
Pipelines\NpmCliPackageTests.cs (1)
649using var cmd = new PowerShellCommand(_packScriptPath, _output)
Pipelines\TrayBundleTests.cs (2)
194using var command = new PowerShellCommand(scriptPath, output) 455using var command = new PowerShellCommand(Path.Combine(RepoRoot.Path, "tools/CreateLayout/verify-windows-tray-payload.ps1"), output)
PowerShellScripts\AspireSkillsBundleHashTests.cs (1)
142using var cmd = new PowerShellCommand(driverPath, _output).WithTimeout(TimeSpan.FromMinutes(1));
PowerShellScripts\BuildTestMatrixTests.cs (1)
758using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\DownloadNativeArchivesTests.cs (1)
400using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (3)
550using var buildCmd = new PowerShellCommand(buildMatrixScript, _output) 567using var splitCmd = new PowerShellCommand(splitScriptPath, _output) 618using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\SplitTestMatrixByDepsTests.cs (3)
201using var cmd = new PowerShellCommand(_scriptPath, _output) 216using var cmd = new PowerShellCommand(_scriptPath, _output) 231using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\SplitTestProjectsTests.cs (1)
187using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\StageNativeCliToolPackagesTests.cs (1)
288using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\ValidateNpmPackageSignaturesTests.cs (1)
204using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\ValidateNpmReleaseAliasesTests.cs (1)
179using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\VerifyNonBlockingTestResultsTests.cs (1)
295using var command = new PowerShellCommand(_scriptPath, _output);
PowerShellScripts\WriteClassModeTestPropsTests.cs (1)
116using var cmd = new PowerShellCommand(_scriptPath, _output)
ResourceGeneratorMetadataTests.cs (1)
91using var command = new PowerShellCommand(script, output)
TemplateManifest\TemplateManifestBuildTargetTests.cs (1)
61using var command = new PowerShellCommand(runner, output)
TemplateManifest\TemplateManifestGenerationTests.cs (1)
90new PowerShellCommand(Path.Combine(RepoRoot.Path, "eng", "scripts", "generate-template-cgmanifest.ps1"), output)
TemplateManifest\TemplateManifestTestEnvironment.cs (1)
96return new PowerShellCommand(script, _output)
TemplateManifest\TemplateRestorePlanTests.cs (1)
203using var command = new PowerShellCommand(script, output)
WorkflowScripts\VerifyTelemetryHookChangesWorkflowTests.cs (1)
151using var command = new PowerShellCommand(scriptPath, output)
43 references to PowerShellCommand
Infrastructure.Tests (43)
BuildWarningPolicyTests.cs (3)
29using var command = CreateCommand(script, RepoRoot.Path) 281using var command = CreateCommand(harness, root) 319private PowerShellCommand CreateCommand(string script, string workingDirectory)
MicrosoftTestingPlatformTests.cs (2)
28using var command = new PowerShellCommand(script, output) 56using var command = new PowerShellCommand(script, output)
Pipelines\ExtensionE2eRecorderStepTests.cs (1)
72using var command = new PowerShellCommand(scriptPath, testOutput, label: aptBehavior)
Pipelines\NpmCliPackageTests.cs (1)
649using var cmd = new PowerShellCommand(_packScriptPath, _output)
Pipelines\TrayBundleTests.cs (2)
194using var command = new PowerShellCommand(scriptPath, output) 455using var command = new PowerShellCommand(Path.Combine(RepoRoot.Path, "tools/CreateLayout/verify-windows-tray-payload.ps1"), output)
PowerShellScripts\AspireSkillsBundleHashTests.cs (1)
142using var cmd = new PowerShellCommand(driverPath, _output).WithTimeout(TimeSpan.FromMinutes(1));
PowerShellScripts\BuildTestMatrixTests.cs (1)
758using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\DownloadNativeArchivesTests.cs (1)
400using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (3)
550using var buildCmd = new PowerShellCommand(buildMatrixScript, _output) 567using var splitCmd = new PowerShellCommand(splitScriptPath, _output) 618using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\PowerShellCommand.cs (3)
38public PowerShellCommand WithWorkingDirectory(string dir) 44public PowerShellCommand WithEnvironmentVariable(string key, string value) 50public PowerShellCommand WithTimeout(TimeSpan timeSpan)
PowerShellScripts\SplitTestMatrixByDepsTests.cs (3)
201using var cmd = new PowerShellCommand(_scriptPath, _output) 216using var cmd = new PowerShellCommand(_scriptPath, _output) 231using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\SplitTestProjectsTests.cs (1)
187using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\StageNativeCliToolPackagesTests.cs (1)
288using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\ValidateNpmPackageSignaturesTests.cs (1)
204using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\ValidateNpmReleaseAliasesTests.cs (1)
179using var cmd = new PowerShellCommand(_scriptPath, _output)
PowerShellScripts\VerifyNonBlockingTestResultsTests.cs (1)
295using var command = new PowerShellCommand(_scriptPath, _output);
PowerShellScripts\WriteClassModeTestPropsTests.cs (1)
116using var cmd = new PowerShellCommand(_scriptPath, _output)
ResourceGeneratorMetadataTests.cs (1)
91using var command = new PowerShellCommand(script, output)
TemplateManifest\TemplateManifestBuildTargetTests.cs (1)
61using var command = new PowerShellCommand(runner, output)
TemplateManifest\TemplateManifestCacheTests.cs (1)
42using var command = environment.CreateCommand()
TemplateManifest\TemplateManifestGenerationTests.cs (3)
27using var command = CreateCommand() 79using var command = CreateCommand() 89private PowerShellCommand CreateCommand() =>
TemplateManifest\TemplateManifestNpmTests.cs (3)
19using var command = environment.CreateCommand(); 58using var command = environment.CreateCommand(); 88using var command = environment.CreateCommand();
TemplateManifest\TemplateManifestNuGetTests.cs (1)
32using var command = environment.CreateCommand();
TemplateManifest\TemplateManifestTestEnvironment.cs (3)
61internal PowerShellCommand CreateCommand() 75internal PowerShellCommand CreateRestoreCommand(string projectPath) 87private PowerShellCommand CreateDotnetCommand(string scriptName, string scriptContent)
TemplateManifest\TemplateRestorePlanTests.cs (2)
162using var command = environment.CreateRestoreCommand(path); 203using var command = new PowerShellCommand(script, output)
WorkflowScripts\VerifyTelemetryHookChangesWorkflowTests.cs (1)
151using var command = new PowerShellCommand(scriptPath, output)