Skip to content

Commit 64e5cda

Browse files
committed
Add test
1 parent 1b08a63 commit 64e5cda

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/dotnet-new.IntegrationTests/DotnetNewInstallTests.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,23 @@ public void CanInstallRemoteNuGetPackage(string commandName)
4141
.And.HaveStdOutContaining("blazorwasm");
4242
}
4343

44+
[Fact]
45+
public void CanInstallToPathWithAt()
46+
{
47+
string path = Path.Combine(Path.GetTempPath(), "repro@4");
48+
try
49+
{
50+
Directory.CreateDirectory(path);
51+
new DotnetCommand(_log, "new", "console", "-o", path, "-n", "myconsole").Execute().Should().Pass();
52+
new DotnetCommand(_log, "add", "package", "--project", Path.Combine(path, "myconsole.csproj"), "Microsoft.Azure.Functions.Worker.ProjectTemplates", "-v", "4.0.5086", "--package-directory", path).Execute().Should().Pass();
53+
new DotnetCommand(_log, "new", "install", Path.Combine(path, "microsoft.azure.functions.worker.projecttemplates/4.0.5086/microsoft.azure.functions.worker.projecttemplates.4.0.5086.nupkg")).Execute().Should().Pass();
54+
}
55+
finally
56+
{
57+
Directory.Delete(path, recursive: true);
58+
}
59+
}
60+
4461
[Fact]
4562
public void CanInstallRemoteNuGetPackage_LatestVariations()
4663
{

0 commit comments

Comments
 (0)