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