1 write to _log
dotnet-new.IntegrationTests (1)
DotnetNewInstallTests.cs (1)
19
_log
= log;
56 references to _log
dotnet-new.IntegrationTests (56)
DotnetNewInstallTests.Approval.cs (18)
13
CommandResult commandResult = new DotnetNewCommand(
_log
, "install", "Microsoft.DotNet.Common.ItemTemplates@6.0.100")
32
CommandResult commandResult = new DotnetNewCommand(
_log
, "install", "Microsoft.DotNet.Common.ItemTemplates@6.0.100", "--force")
52
CommandResult commandResult = new DotnetNewCommand(
_log
, "install", "Microsoft.DotNet.Common.ItemTemplates@6.0.100", "Microsoft.DotNet.Web.ItemTemplates@5.0.0")
73
CommandResult commandResult = new DotnetNewCommand(
_log
, commandName, "Microsoft.DotNet.Web.ItemTemplates@5.0.0")
90
CommandResult commandResult = new DotnetNewCommand(
_log
, "install", "Microsoft.DotNet.Web.ItemTemplates@5.0.0")
106
CommandResult commandResult = new DotnetNewCommand(
_log
, "install", testTemplateLocation)
128
new DotnetNewCommand(
_log
, "install", basicFSharp)
135
CommandResult commandResult = new DotnetNewCommand(
_log
, "install", basicFSharp, "--force")
150
new DotnetNewCommand(
_log
, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.0.0")
157
CommandResult commandResult = new DotnetNewCommand(
_log
, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.0.0", "--force")
171
new DotnetNewCommand(
_log
, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.0.0")
182
CommandResult commandResult = new DotnetNewCommand(
_log
, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.0.0")
196
new DotnetNewCommand(
_log
, "install", basicFSharp)
206
new DotnetNewCommand(
_log
, "install", basicFSharp)
213
CommandResult commandResult = new DotnetNewCommand(
_log
, "install", basicFSharp)
229
CommandResult commandResult = new DotnetNewCommand(
_log
, "install", templateToInstall)
246
InstallTestTemplate("TemplateWithRequiredParameters",
_log
, homeDirectory);
252
CommandResult commandResult = new DotnetNewCommand(
_log
, "install", templateToInstall)
DotnetNewInstallTests.cs (38)
29
new DotnetNewCommand(
_log
, commandName, "Microsoft.DotNet.Web.ProjectTemplates.5.0")
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();
65
CommandResult command1 = new DotnetNewCommand(
_log
, commandName, "Microsoft.DotNet.Common.ProjectTemplates.5.0")
70
CommandResult command2 = new DotnetNewCommand(
_log
, commandName, $"Microsoft.DotNet.Common.ProjectTemplates.5.0@")
75
CommandResult command3 = new DotnetNewCommand(
_log
, commandName, $"Microsoft.DotNet.Common.ProjectTemplates.5.0@*")
108
new DotnetNewCommand(
_log
, commandName, "Microsoft.DotNet.Web.ProjectTemplates.5.0::5.0.0")
129
CommandResult command1 = new DotnetNewCommand(
_log
, commandName, "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.*")
134
CommandResult command2 = new DotnetNewCommand(
_log
, commandName, "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.0.*")
168
new DotnetNewCommand(
_log
, "-i", "Microsoft.Azure.WebJobs.ProjectTemplates::4.0.1844-preview1", "--nuget-source", "https://api.nuget.org/v3/index.json")
187
new DotnetNewCommand(
_log
, commandName, "Take.Blip.Client.Templates", "--nuget-source", "https://api.nuget.org/v3/index.json")
199
new DotnetNewCommand(
_log
, commandName, "Take.Blip.Client.Templates", "--add-source", "https://api.nuget.org/v3/index.json")
218
string packageLocation = PackTestNuGetPackage(
_log
);
219
new DotnetNewCommand(
_log
, commandName, packageLocation)
236
new DotnetNewCommand(
_log
, commandName, "Microsoft.DotNet.Web.ProjectTemplates.5.0")
260
new DotnetNewCommand(
_log
, commandName, basicFSharp)
280
new DotnetNewCommand(
_log
, commandName, "Microsoft.DotNet.Common.ProjectTemplates.5.0")
291
new DotnetNewCommand(
_log
, commandName, "Microsoft.DotNet.Web.ProjectTemplates.5.0")
311
new DotnetNewCommand(
_log
, commandName, "BlaBlaBla")
326
new DotnetNewCommand(
_log
, commandName, "Microsoft.DotNet.Web.ProjectTemplates.5.0::16.0.0")
341
new DotnetNewCommand(
_log
, "-i", "Microsoft.DotNet.Web.ProjectTemplates.5.0", "-i", "Microsoft.DotNet.Common.ProjectTemplates.5.0", "-i", basicFSharp, "-i", basicVB)
364
new DotnetNewCommand(
_log
, "install", "Microsoft.DotNet.Web.ProjectTemplates.5.0", "Microsoft.DotNet.Common.ProjectTemplates.5.0", basicFSharp, basicVB)
387
new DotnetNewCommand(
_log
, installCommandName, "Microsoft.DotNet.Common.ProjectTemplates.5.0::5.0.0")
398
new DotnetNewCommand(
_log
, uninstallCommandName)
410
new DotnetNewCommand(
_log
, installCommandName, "Microsoft.DotNet.Common.ProjectTemplates.5.0::5.0.1")
424
new DotnetNewCommand(
_log
, uninstallCommandName)
454
new DotnetNewCommand(
_log
, installCommandName, packageLocation)
464
new DotnetNewCommand(
_log
, uninstallCommandName)
475
new DotnetNewCommand(
_log
, installCommandName, "Microsoft.DotNet.Common.ProjectTemplates.5.0::5.0.0")
489
new DotnetNewCommand(
_log
, uninstallCommandName)
512
new DotnetNewCommand(
_log
, commandName, pattern)
535
new DotnetNewCommand(
_log
, commandName, codebase)
547
string packageLocation = PackTestNuGetPackage(
_log
);
549
new DotnetNewCommand(
_log
, "-i", packageLocation)
560
new DotnetNewCommand(
_log
, "-i", packageLocation)
577
new DotnetNewCommand(
_log
, "-i", invalidTemplatePath)
594
new DotnetNewCommand(
_log
, "-i", invalidTemplatePath)