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