Skip to content

Commit 2b20308

Browse files
committed
Fix test
1 parent aa42209 commit 2b20308

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ public void AoT_Publish_WithExistingWebConfig_Works()
7373

7474
var publishDirectory = publishCommand.GetOutputDirectory(DefaultTfm, "Release");
7575

76+
var webConfig = new BuildCommand(testInstance, "blazorwasm").GetOutputDirectory(configuration: "Release").File("web.config");
77+
7678
// Verify web.config
77-
new FileInfo(Path.Combine(publishDirectory.ToString(), "..", "web.config")).Should().Exist();
78-
new FileInfo(Path.Combine(publishDirectory.ToString(), "..", "web.config")).Should().Contain(webConfigContents);
79+
webConfig.Should().Exist();
80+
webConfig.Should().Contain(webConfigContents);
7981
}
8082

8183
[RequiresMSBuildVersionFact("17.0.0")]

src/Tests/Microsoft.NET.TestFramework/TestCommandLine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class TestCommandLine
1313
{
1414
public List<string> RemainingArgs { get; private set; }
1515

16-
public bool UseFullFrameworkMSBuild { get; private set; }
16+
public bool UseFullFrameworkMSBuild { get; private set; } = true;
1717

1818
public string FullFrameworkMSBuildPath { get; private set; }
1919

0 commit comments

Comments
 (0)