33 references to WithEnvironmentVariable
Infrastructure.Tests (33)
BuildWarningPolicyTests.cs (21)
30
.
WithEnvironmentVariable
("WarningsNotAsErrors", "CS1591")
31
.
WithEnvironmentVariable
("TEST_STRICT", strict.ToString())
32
.
WithEnvironmentVariable
("TEST_OFFICIAL", official.ToString());
282
.
WithEnvironmentVariable
("TEST_SHELL", shell)
283
.
WithEnvironmentVariable
("TEST_ENTRY_POINT", entryPoint)
284
.
WithEnvironmentVariable
("TEST_CLEAN", clean ? "true" : "false")
285
.
WithEnvironmentVariable
("TEST_ARGUMENTS", JsonSerializer.Serialize(arguments))
286
.
WithEnvironmentVariable
("TEST_REPORT", report.Replace('\\', '/'))
287
.
WithEnvironmentVariable
("TEST_BOOTSTRAP", bootstrap.Replace('\\', '/'))
288
.
WithEnvironmentVariable
("TEST_WARNING_CODE", scenario == "unrelated" ? "TST9999" : "TST1001")
289
.
WithEnvironmentVariable
("TreatWarningsAsErrors", scenario == "environment-disabled" ? "false" : "true")
290
.
WithEnvironmentVariable
("WarningsNotAsErrors", scenario == "empty" ? "" : "CS1591");
327
.
WithEnvironmentVariable
("TEST_DOTNET", dotnet.Replace('\\', '/'))
328
.
WithEnvironmentVariable
("TEST_REPO", RepoRoot.Path)
329
.
WithEnvironmentVariable
("MSBUILDTERMINALLOGGER", "false")
330
.
WithEnvironmentVariable
("MSYS2_ARG_CONV_EXCL", "/p:;/property:")
331
.
WithEnvironmentVariable
("TreatWarningsAsErrors", "true")
332
.
WithEnvironmentVariable
("TreatNuGetAuditWarningsAsErrors", "")
333
.
WithEnvironmentVariable
("AdditionalWarningsNotAsErrors", "")
334
.
WithEnvironmentVariable
("MSBuildWarningsNotAsErrors", "")
335
.
WithEnvironmentVariable
("MSBuildTreatWarningsAsErrors", "");
MicrosoftTestingPlatformTests.cs (2)
25
.
WithEnvironmentVariable
("TEST_DOTNET", Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"))
26
.
WithEnvironmentVariable
("TEST_ASSEMBLY", typeof(MicrosoftTestingPlatformTests).Assembly.Location);
Pipelines\ExtensionE2eRecorderStepTests.cs (1)
73
.
WithEnvironmentVariable
("PATH", stubDirectory)
PowerShellScripts\DownloadNativeArchivesTests.cs (1)
405
cmd.
WithEnvironmentVariable
("SYSTEM_ACCESSTOKEN", "");
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (1)
569
.
WithEnvironmentVariable
("GITHUB_OUTPUT", githubOutputFile);
PowerShellScripts\SplitTestMatrixByDepsTests.cs (3)
203
.
WithEnvironmentVariable
("GITHUB_OUTPUT", _githubOutputFile);
218
.
WithEnvironmentVariable
("GITHUB_OUTPUT", _githubOutputFile);
233
.
WithEnvironmentVariable
("GITHUB_OUTPUT", _githubOutputFile);
PowerShellScripts\ValidateNpmReleaseAliasesTests.cs (3)
181
.
WithEnvironmentVariable
("NPM_PUBLISH_OWNERS", owners)
182
.
WithEnvironmentVariable
("NPM_PUBLISH_APPROVERS", approvers)
183
.
WithEnvironmentVariable
("NPM_PUBLISH_REQUIRED_OWNERS", requiredOwners);
WorkflowScripts\VerifyTelemetryHookChangesWorkflowTests.cs (1)
153
.
WithEnvironmentVariable
("PR_HEAD_REF", headRef)