Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dsplaisted committed Jan 12, 2023
1 parent aa42209 commit 2b20308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ public void AoT_Publish_WithExistingWebConfig_Works()

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

var webConfig = new BuildCommand(testInstance, "blazorwasm").GetOutputDirectory(configuration: "Release").File("web.config");

// Verify web.config
new FileInfo(Path.Combine(publishDirectory.ToString(), "..", "web.config")).Should().Exist();
new FileInfo(Path.Combine(publishDirectory.ToString(), "..", "web.config")).Should().Contain(webConfigContents);
webConfig.Should().Exist();
webConfig.Should().Contain(webConfigContents);
}

[RequiresMSBuildVersionFact("17.0.0")]
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Microsoft.NET.TestFramework/TestCommandLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class TestCommandLine
{
public List<string> RemainingArgs { get; private set; }

public bool UseFullFrameworkMSBuild { get; private set; }
public bool UseFullFrameworkMSBuild { get; private set; } = true;

public string FullFrameworkMSBuildPath { get; private set; }

Expand Down

0 comments on commit 2b20308

Please sign in to comment.