1 write to _log
dotnet-new.IntegrationTests (1)
DotnetNewInstantiateTests.cs (1)
17_log = log;
82 references to _log
dotnet-new.IntegrationTests (82)
DotnetNewInstantiateTests.Approval.cs (56)
14CommandResult commandResult = new DotnetNewCommand(_log, "unknownapp") 30CommandResult commandResult = new DotnetNewCommand(_log, "console", "--language", "D#") 46CommandResult commandResult = new DotnetNewCommand(_log, "console", "--type", "item") 64InstallTestTemplate("TemplateResolution/DifferentLanguagesGroup/BasicFSharp", _log, home, workingDirectory); 65InstallTestTemplate("TemplateResolution/DifferentLanguagesGroup/BasicVB", _log, home, workingDirectory); 67CommandResult commandResult = new DotnetNewCommand(_log, "basic") 85string templateOneLocation = InstallTestTemplate("TemplateResolution/SameShortName/BasicFSharp", _log, home, workingDirectory); 86string templateTwoLocation = InstallTestTemplate("TemplateResolution/SameShortName/BasicVB", _log, home, workingDirectory); 88CommandResult commandResult = new DotnetNewCommand(_log, "basic") 117CommandResult commandResult = new DotnetNewCommand(_log, "Console App") 134InstallTestTemplate("TemplateWithPreferDefaultNameButNoDefaultName", _log, home, workingDirectory); 136CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithPreferDefaultNameButNoDefaultName") 154CommandResult commandResult = new DotnetNewCommand(_log, "console", "--fake") 172CommandResult commandResult = new DotnetNewCommand(_log, "console", "--framework", "fake") 190var commandResult = new DotnetNewCommand(_log, "console", "--framework", "net") 208CommandResult commandResult = new DotnetNewCommand(_log, "console", "--framework", "netcoreapp", "--fake") 226string templateOneLocation = InstallTestTemplate("TemplateResolution/SamePrecedenceGroup/BasicTemplate1", _log, home, workingDirectory); 227string templateTwoLocation = InstallTestTemplate("TemplateResolution/SamePrecedenceGroup/BasicTemplate2", _log, home, workingDirectory); 229CommandResult commandResult = new DotnetNewCommand(_log, "basic") 267InstallTestTemplate("TemplateWithMultiValueChoice", _log, home, workingDirectory); 269CommandResult commandResult = new DotnetNewCommand(_log, args) 291InstallTestTemplate("TemplateWithMultiValueChoice", _log, home, workingDirectory); 293CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithMultiValueChoice", "--Platform", "") 314InstallTestTemplate("TemplateWithConditionalParameters", _log, home, workingDirectory); 317_log, 347InstallTestTemplate("TemplateWithMultiValueChoice", _log, home, workingDirectory); 349CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithMultiValueChoice", "--Platform", "", "--Platform", "MacOS") 365InstallTestTemplate($"TemplateConditionalProcessing", _log, home, workingDirectory); 367new DotnetNewCommand(_log, "TestAssets.TemplateConditionalProcessing") 392InstallTestTemplate("TemplateWithSourceNameAndCustomTargetPath", _log, home, workingDirectory); 394CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithSourceNameAndCustomTargetPath", "-o", _OUT_FOLDER, "--dry-run") 425new DotnetNewCommand(_log, "console", "--name", "overwrite-test", "-o", "folderA") 434CommandResult commandResult = new DotnetNewCommand(_log, "console", "--name", "overwrite-test", "-o", "folderA") 469string templateLocation = InstallTestTemplate("Invalid/InvalidHostData", _log, home, workingDirectory); 471CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.Invalid.InvalidHostData") 496new DotnetNewCommand(_log, "install", "Microsoft.DotNet.Common.ItemTemplates@6.0.100", "--force") 502CommandResult commandResult = new DotnetNewCommand(_log, "gitignore") 525string templateLocation = InstallTestTemplate("Invalid/SameShortName", _log, home, workingDirectory); 527CommandResult commandResult = new DotnetNewCommand(_log, "sameshortname") 552InstallTestTemplate("Constraints/RestrictedTemplate", _log, customHivePath); 554CommandResult commandResult = new DotnetNewCommand(_log, "Constraints.RestrictedTemplate") 574InstallTestTemplate("Constraints/RestrictedTemplate", _log, customHivePath); 576CommandResult commandResult = new DotnetNewCommand(_log, "Constraints.RestrictedTemplate", "--force") 599new DotnetNewCommand(_log, "install", templateLocation) 609CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithSourceName") 629CommandResult commandResult = new DotnetNewCommand(_log, "cnsle") 645CommandResult commandResult = new DotnetNewCommand(_log, "uninstal") 662InstallTestTemplate("TemplateWithSourceName", _log, customHivePath); 663InstallTestTemplate("TemplateWithConflictShortName", _log, customHivePath); 665CommandResult commandResult = new DotnetNewCommand(_log, "create", "TestAssets.TemplateWithSourceName") 685InstallTestTemplate("TemplateWithRequiredParameters", _log, homeDirectory, workingDirectory); 687CommandResult commandResult = new DotnetNewCommand(_log, parameters.Split("|")) 711InstallTestTemplate("TemplateWithConditionalParameters", _log, homeDirectory, workingDirectory); 713CommandResult commandResult = new DotnetNewCommand(_log, parameters.Split("|")) 736InstallTestTemplate("TemplateWithRequiredParameters", _log, homeDirectory, workingDirectory); 738CommandResult commandResult = new DotnetNewCommand(_log, parameters.Split("|"))
DotnetNewInstantiateTests.cs (26)
25new DotnetNewCommand(_log, "console") 43new DotnetNewCommand(_log, "console", "--alias", "csharpconsole") 52new DotnetNewCommand(_log, "console", "-n", "MyConsole", "-o", "no-alias") 61new DotnetNewCommand(_log, "csharpconsole", "-n", "MyConsole", "-o", "alias") 83InstallTestTemplate("TemplateResolution/DifferentLanguagesGroup/BasicFSharp", _log, home, workingDirectory); 85new DotnetNewCommand(_log, "basic") 100Utils.CommandResult commandResult = new DotnetNewCommand(_log, "console", "--no-restore") 110Utils.CommandResult forceCommandResult = new DotnetNewCommand(_log, "console", "--no-restore", "--force") 128InstallNuGetTemplate("Microsoft.DotNet.Web.ProjectTemplates.5.0", _log, home, workingDirectory); 130new DotnetNewCommand(_log, "webapp", "-o", "webapp") 139new DotnetNewCommand(_log, "razor", "-o", "razor") 156InstallTestTemplate(templateLocation, _log, home, workingDirectory); 158new DotnetNewCommand(_log, "TestAssets.TemplateWithBinaryFile") 182string packageLocation = PackTestNuGetPackage(_log); 183InstallNuGetTemplate(packageLocation, _log, home, workingDirectory); 185new DotnetNewCommand(_log, "TestAssets.TemplateWithBinaryFile") 209InstallTestTemplate(templateLocation, _log, home, workingDirectory); 212new DotnetNewCommand(_log, "TestAssets.TemplateWithParamsSharingPrefix") 262InstallTestTemplate("TemplateWithConditions", _log, home, workingDirectory); 263new DotnetNewCommand(_log, "TestAssets.TemplateWithConditions", "--A", "true") 277new DotnetNewCommand(_log, "TestAssets.TemplateWithConditions", "--A", "false") 291new DotnetNewCommand(_log, "TestAssets.TemplateWithConditions", "--B", "true") 312InstallTestTemplate("TemplateWithPreferDefaultName", _log, home, workingDirectory); 315new DotnetNewCommand(_log, "TestAssets.TemplateWithPreferDefaultName", "-n", name) 341_log, 345new DotnetNewCommand(_log, templateName, "--dry-run")