1 write to _log
dotnet-new.IntegrationTests (1)
PostActionTests.cs (1)
16_log = log;
116 references to _log
dotnet-new.IntegrationTests (116)
PostActionTests.Approval.cs (19)
16InstallTestTemplate(templateLocation, _log, home, workingDirectory); 18CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.PostActions.RestoreNuGet.Basic", "-n", "MyProject") 48InstallTestTemplate(templateLocation, _log, home, workingDirectory); 50CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--allow-scripts", "yes") 71InstallTestTemplate(templateLocation, _log, home, workingDirectory); 73CommandResult commandResult = new DotnetNewCommand(_log, templateName, "-n", "MyProject") 102InstallTestTemplate(templateLocation, _log, home, workingDirectory); 104CommandResult commandResult = new DotnetNewCommand(_log, templateName, "-n", "MyProject") 133InstallTestTemplate(templateLocation, _log, home, workingDirectory); 136new DotnetNewCommand(_log, "sln", "-n", "MySolution") 144CommandResult commandResult = new DotnetNewCommand(_log, templateName, "-n", "MyProject") 173InstallTestTemplate(templateLocation, _log, home, workingDirectory); 175CommandResult commandResult = new DotnetNewCommand(_log, templateName) 195InstallTestTemplate(templateLocation, _log, home, workingDirectory); 197CommandResult commandResult = new DotnetNewCommand(_log, templateName, "-n", "MyProject", "--dry-run") 219InstallTestTemplate(templateLocation, _log, home, workingDirectory); 221CommandResult commandResult = new DotnetNewCommand(_log, templateName) 239InstallTestTemplate(templateLocation, _log, home, workingDirectory); 241CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--allow-scripts", "no")
PostActionTests.cs (97)
33InstallTestTemplate(templateLocation, _log, home, workingDirectory); 35new DotnetNewCommand(_log, templateName, "-n", "MyProject") 49new DotnetBuildCommand(_log, "--no-restore") 68InstallTestTemplate(templateLocation, _log, home, workingDirectory); 70new DotnetNewCommand(_log, expectedTemplateName, "-n", "MyProject", "-o", outputDirectory) 85new DotnetBuildCommand(_log, "--no-restore") 104InstallTestTemplate(templateLocation, _log, home, workingDirectory); 106new DotnetNewCommand(_log, expectedTemplateName, "-n", "MyProject", "-o", outputDirectory) 121new DotnetBuildCommand(_log, "--no-restore") 140InstallTestTemplate(templateLocation, _log, home, workingDirectory); 142new DotnetNewCommand(_log, templateName, "-n", "MyProject", "--firstRename", "Awesome") 156new DotnetBuildCommand(_log, "--no-restore") 175InstallTestTemplate(templateLocation, _log, home, workingDirectory); 177new DotnetNewCommand(_log, templateName, "-n", "TemplateApplication") 191new DotnetBuildCommand(_log, "src/TemplateApplication", "--no-restore") 201new DotnetBuildCommand(_log, "test/TemplateApplication.Tests", "--no-restore") 217InstallTestTemplate(templateLocation, _log, home, workingDirectory); 219new DotnetNewCommand(_log, templateName, "-n", "TemplateApplication") 233new DotnetBuildCommand(_log, "TemplateApplication.UI", "--no-restore") 243new DotnetBuildCommand(_log, "TemplateApplication.Tests", "--no-restore") 270InstallTestTemplate(templateLocation, _log, home, workingDirectory); 272var result = new DotnetNewCommand(_log, templateName, "-n", rename) 297new DotnetBuildCommand(_log, projectName, "--no-restore") 316InstallTestTemplate(templateLocation, _log, home, workingDirectory); 318CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--allow-scripts", "yes") 349InstallTestTemplate(templateLocation, _log, home, workingDirectory); 351CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--allow-scripts", "yes") 374InstallTestTemplate(templateLocation, _log, home, workingDirectory); 376CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--allow-scripts", "yes") 399InstallTestTemplate(templateLocation, _log, home, workingDirectory); 401CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--allow-scripts", "yes") 433InstallTestTemplate(templateLocation, _log, home, workingDirectory); 435new DotnetNewCommand(_log, templateName) 447new DotnetBuildCommand(_log) 464InstallTestTemplate(templateLocation, _log, home, workingDirectory); 466new DotnetNewCommand(_log, expectedTemplateName, "-o", outputDirectory, "-n", "MyProject") 479new DotnetBuildCommand(_log, Path.Combine(outputDirectory, "MyProject.csproj")) 495InstallTestTemplate(templateLocation, _log, home, workingDirectory); 497new DotnetNewCommand(_log, expectedTemplateName, "-o", "output", "-n", "MyProject") 510new DotnetBuildCommand(_log, Path.Combine("output", "MyProject.csproj")) 526InstallTestTemplate(templateLocation, _log, home, workingDirectory); 528new DotnetNewCommand(_log, expectedTemplateName) 538new DotnetBuildCommand(_log, "Project1/Project1.csproj") 546new DotnetBuildCommand(_log, "Project2/Project2.csproj") 563InstallTestTemplate(templateLocation, _log, home, workingDirectory); 565var result = new DotnetCommand(_log, "--version") 568new DotnetNewCommand(_log) 573new DotnetNewCommand(_log, expectedTemplateName) 583new DotnetBuildCommand(_log, "ExistingProject/ExistingProject.csproj") 591new DotnetBuildCommand(_log, "Project1/Project1.csproj") 610InstallTestTemplate(templateLocation, _log, home, workingDirectory); 612var result = new DotnetCommand(_log, "--version") 615new DotnetNewCommand(_log) 620new DotnetNewCommand(_log, expectedTemplateName, "--existingProject", "src/AlreadyExisting/AlreadyExisting.csproj") 630new DotnetBuildCommand(_log, "Project1/Project1.csproj") 638new DotnetBuildCommand(_log, "src/AlreadyExisting/AlreadyExisting.csproj") 655InstallTestTemplate(templateLocation, _log, home, workingDirectory); 657new DotnetNewCommand(_log, expectedTemplateName, "-o", outputDirectory) 669new DotnetBuildCommand(_log, Path.Combine(outputDirectory, "Project1", "Project1.csproj")) 685InstallTestTemplate(templateLocation, _log, home, workingDirectory); 687new DotnetNewCommand(_log, expectedTemplateName, "-o", "output") 699new DotnetBuildCommand(_log, Path.Combine("output", "Project1", "Project1.csproj")) 716InstallTestTemplate(templateLocation, _log, home, workingDirectory); 718CommandResult commandResult = new DotnetNewCommand(_log, templateName) 741new DotnetBuildCommand(_log, "--no-restore") 755InstallTestTemplate(templateLocation, _log, home, workingDirectory); 758new DotnetNewCommand(_log, "sln", "-n", "MySolution") 766new DotnetNewCommand(_log, templateName, "-n", "MyProject") 789InstallTestTemplate(templateLocation, _log, home, workingDirectory); 792new DotnetNewCommand(_log, "sln", "-n", "MySolution", "-o", outputDirectory) 800new DotnetNewCommand(_log, expectedTemplateName, "-n", "MyProject", "-o", outputDirectory) 825InstallTestTemplate(templateLocation, _log, home, workingDirectory); 828new DotnetNewCommand(_log, "sln", "-n", "MySolution", "-o", outputDirectory) 836new DotnetNewCommand(_log, expectedTemplateName, "-n", "MyProject", "-o", outputDirectory) 861InstallTestTemplate(templateLocation, _log, home, workingDirectory); 864new DotnetNewCommand(_log, "sln", "-n", "MySolution", "-o", outputDirectory) 872new DotnetNewCommand(_log, expectedTemplateName, "-n", "MyProject", "-o", outputDirectory) 896InstallTestTemplate(templateLocation, _log, home, workingDirectory); 899new DotnetNewCommand(_log, "sln", "-n", "MySolution") 907new DotnetNewCommand(_log, expectedTemplateName) 935InstallTestTemplate(templateLocation, _log, home, workingDirectory); 937CommandResult commandResult = new DotnetNewCommand(_log, templateName) 1034InstallTestTemplate(templateLocation, _log, home, workingDirectory); 1036new DotnetNewCommand(_log, templateName) 1060InstallTestTemplate(existingProjectTemplateLocation, _log, home, workingDirectory); 1061InstallTestTemplate(myProjectTemplateLocation, _log, home, workingDirectory); 1065new DotnetNewCommand(_log, "sln", "-n", "MySolution") 1076new DotnetNewCommand(_log, existingProjectTemplateName, "-o", "ExistingProject") 1089new DotnetNewCommand(_log, myProjectTemplateName, "-o", "custommodule1", "-n", "custommodule1") 1110InstallTestTemplate(templateLocation, _log, home, workingDirectory); 1114new DotnetNewCommand(_log, templateName, "-n", "TheProjectName") 1143InstallTestTemplate(templateLocation, _log, home, workingDirectory); 1145new DotnetNewCommand(_log, templateName, "-n", "TheProjectName") 1176InstallTestTemplate(templateLocation, _log, home, workingDirectory); 1180new DotnetNewCommand(_log, templateName) 1199InstallTestTemplate(templateLocation, _log, home, workingDirectory); 1207new DotnetNewCommand(_log, templateName, "-o", "SolutionFolder/SomeTestFolder")