Skip to content

Commit 0dfec36

Browse files
committed
Fix tests
1 parent 118657b commit 0dfec36

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ public void It_passes_using_PublishRelease_with_conflicting_capitalization_but_s
538538

539539
Environment.SetEnvironmentVariable(EnvironmentVariableNames.ENABLE_PUBLISH_RELEASE_FOR_SOLUTIONS, null);
540540

541-
var expectedAssetPath = System.IO.Path.Combine(slnDir, "App", "artifacts", "publish", "Release", "App.dll");
541+
var expectedAssetPath = System.IO.Path.Combine(slnDir, "App", "artifacts", "publish", "release", "App.dll");
542542
Assert.True(File.Exists(expectedAssetPath));
543543

544544
}

src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests/WasmAoTPublishIntegrationTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void AoT_Publish_InRelease_Works()
3030
var testInstance = CreateAspNetSdkTestAssetWithAot(testAppName, new [] { "blazorwasm" });
3131
File.WriteAllText(Path.Combine(testInstance.TestRoot, "blazorwasm", "App.razor.css"), "h1 { font-size: 16px; }");
3232

33-
var publishCommand = new PublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorwasm"));
33+
var publishCommand = new PublishCommand(testInstance, "blazorwasm");
3434
publishCommand.Execute("/p:Configuration=Release").Should().Pass();
3535

3636
var publishDirectory = publishCommand.GetOutputDirectory(DefaultTfm, "Release");
@@ -68,7 +68,7 @@ public void AoT_Publish_WithExistingWebConfig_Works()
6868
var webConfigContents = "test webconfig contents";
6969
File.WriteAllText(Path.Combine(testInstance.TestRoot, "blazorwasm", "web.config"), webConfigContents);
7070

71-
var publishCommand = new PublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorwasm"));
71+
var publishCommand = new PublishCommand(testInstance, "blazorwasm");
7272
publishCommand.Execute("/p:Configuration=Release").Should().Pass();
7373

7474
var publishDirectory = publishCommand.GetOutputDirectory(DefaultTfm, "Release");
@@ -91,7 +91,7 @@ public void AoT_Publish_HostedAppWithScopedCss_VisualStudio()
9191
buildCommand.Execute("/p:BuildInsideVisualStudio=true /p:Configuration=Release").Should().Pass();
9292

9393
// Publish
94-
var publishCommand = new PublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorhosted"));
94+
var publishCommand = new PublishCommand(testInstance, "blazorhosted");
9595
publishCommand.Execute("/p:BuildProjectReferences=false /p:BuildInsideVisualStudio=true /p:Configuration=Release").Should().Pass();
9696

9797
var publishDirectory = publishCommand.GetOutputDirectory(DefaultTfm);

0 commit comments

Comments
 (0)