Skip to content

Commit 95f92b8

Browse files
Forgindbaronfel
authored andcommitted
Add test
1 parent e0b1f78 commit 95f92b8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/dotnet-new.Tests/DotnetNewInstallTests.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,23 @@ public void CanInstallRemoteNuGetPackage_LatestVariations(string separator)
8585
Assert.Equal(command1.StdOut, command3Out);
8686
}
8787

88+
[Fact]
89+
public void CanInstallToPathWithAt()
90+
{
91+
string path = Path.Combine(Path.GetTempPath(), "repro@4");
92+
try
93+
{
94+
Directory.CreateDirectory(path);
95+
new DotnetCommand(_log, "new", "console", "-o", path, "-n", "myconsole").Execute().Should().Pass();
96+
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();
97+
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();
98+
}
99+
finally
100+
{
101+
Directory.Delete(path, recursive: true);
102+
}
103+
}
104+
88105
[Theory]
89106
[InlineData("-i")]
90107
[InlineData("install")]

0 commit comments

Comments
 (0)