Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions test/dotnet-new.IntegrationTests/DotnetNewInstallTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -603,5 +603,16 @@ public void CanShowWarning_WhenHostDataIsIncorrect()
.And.HaveStdOutContaining($"Success: {invalidTemplatePath} installed the following templates:")
.And.HaveStdOutContaining("TestAssets.Invalid.InvalidHostData");
}

[Fact]
public void CanShowWarning_WhenHostDataIsIncorrect1()
{
string templatePackagePath = Path.Combine(RepoTemplatePackages, "Microsoft.DotNet.Common.ProjectTemplates.10.0", "content");
new DotnetNewCommand(_log, "install", templatePackagePath)
.WithCustomHive(CreateTemporaryFolder(folderName: "Home"))
.WithWorkingDirectory(CreateTemporaryFolder())
.Execute()
.Should().ExitWith(0);
}
}
}
Loading