469 instantiations of DotnetNewCommand
dotnet.Tests (11)
CommandTests\Pack\PackTests.cs (1)
241
new
DotnetNewCommand
(Log, "console", "-o", rootPath, "--no-restore")
CommandTests\Reference\Add\GivenDotnetAddReference.cs (1)
72
new
DotnetNewCommand
(Log, "classlib", "-o", projDir.Path, "--no-restore")
CommandTests\Reference\List\GivenDotnetListReference.cs (1)
247
new
DotnetNewCommand
(Log, "classlib", "-o", dir.Path, "--no-restore")
CommandTests\Reference\Remove\GivenDotnetRemoveP2P.cs (1)
73
new
DotnetNewCommand
(Log)
CommandTests\Restore\GivenThatIWantToRestoreApp.cs (2)
135
new
DotnetNewCommand
(Log)
159
new
DotnetNewCommand
(Log)
CommandTests\Run\GivenDotnetRunBuildsCsProj.cs (1)
227
new
DotnetNewCommand
(Log)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs (1)
165
new
DotnetNewCommand
(Log, "sln")
CommandTests\Tool\Install\ToolInstallCommandTests.cs (2)
46
new
DotnetNewCommand
(Log, "tool-manifest").WithCustomHive("/tmp/folder").WithWorkingDirectory("/tmp/folder").Execute().Should().Pass();
51
new
DotnetNewCommand
(Log, "tool-manifest").WithCustomHive("/tmp/folder/sub").WithWorkingDirectory("/tmp/folder/sub").Execute().Should().Pass();
OutputPathOptionTests.cs (1)
52
new
DotnetNewCommand
(Log)
dotnet-new.IntegrationTests (434)
BaseIntegrationTest.cs (2)
92
DotnetNewCommand command = new
DotnetNewCommand
(log, "-i", packageName)
122
DotnetNewCommand command = new
DotnetNewCommand
(log, "install", testTemplate)
CommonTemplatesTests.cs (1)
143
new
DotnetNewCommand
(_log, templateShortName)
DotnetClassTemplateTests.cs (1)
213
new
DotnetNewCommand
(Log, projectArgs.ToArray())
DotnetNewArgumentsTests.cs (2)
18
var dotnetNewHelpOutput = new
DotnetNewCommand
(_log, "--help")
22
new
DotnetNewCommand
(_log, "-v")
DotnetNewDebugOptionsTests.cs (9)
24
CommandResult commandResult = new
DotnetNewCommand
(_log)
32
CommandResult reinitCommandResult = new
DotnetNewCommand
(_log, "--debug:reinit")
48
CommandResult commandResult = new
DotnetNewCommand
(_log)
56
CommandResult reinitCommandResult = new
DotnetNewCommand
(_log, "--debug:rebuildcache")
70
CommandResult commandResult = new
DotnetNewCommand
(_log, "--debug:show-config")
99
new
DotnetNewCommand
(_log, "--debug:ephemeral-hive")
112
new
DotnetNewCommand
(_log, "--debug:custom-hive", home)
127
CommandResult commandResult = new
DotnetNewCommand
(_log, "list", "--debug:disable-sdk-templates")
141
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--debug:disable-sdk-templates")
DotnetNewDetailsTest.Approval.cs (12)
19
CommandResult commandResult = new
DotnetNewCommand
(_log, "details", _nuGetPackageId, "--version", "4.8.0-dev.604")
36
var createCommandResult = () => new
DotnetNewCommand
(_log, "details", _nuGetPackageId)
64
CommandResult commandResult = new
DotnetNewCommand
(_log, "details", "Microsoft.Azure.WebJobs.ItemTemplates", "--version", "4.0.2288")
82
CommandResult commandResult = new
DotnetNewCommand
(_log, "details", packageName)
101
new
DotnetNewCommand
(_log, "install", packageLocation)
110
CommandResult commandResult = new
DotnetNewCommand
(_log, "details", "Microsoft.TemplateEngine.TestTemplates")
128
new
DotnetNewCommand
(_log, "install", _nuGetPackageId, "--nuget-source", "https://api.nuget.org/v3/index.json")
136
CommandResult commandResult = new
DotnetNewCommand
(_log, "details", _nuGetPackageId)
155
new
DotnetNewCommand
(_log, "install", packageName)
163
CommandResult commandResult = new
DotnetNewCommand
(_log, "details", packageName)
182
new
DotnetNewCommand
(_log, "install", basicFSharp)
189
CommandResult commandResult = new
DotnetNewCommand
(_log, "details", basicFSharp)
DotnetNewDetailsTest.cs (3)
22
new
DotnetNewCommand
(_log, "install", packageLocation)
30
new
DotnetNewCommand
(_log, "details", "Microsoft.TemplateEngine.TestTemplates")
51
new
DotnetNewCommand
(_log, "details", nonexistantPackageName)
DotnetNewHelpTests.Approval.cs (23)
20
CommandResult commandResult = new
DotnetNewCommand
(_log, command)
40
CommandResult commandResult = new
DotnetNewCommand
(_log, "create", option)
60
CommandResult commandResult = new
DotnetNewCommand
(_log, "install", option)
80
CommandResult commandResult = new
DotnetNewCommand
(_log, "update", option)
100
CommandResult commandResult = new
DotnetNewCommand
(_log, "uninstall", option)
120
CommandResult commandResult = new
DotnetNewCommand
(_log, "list", option)
140
CommandResult commandResult = new
DotnetNewCommand
(_log, "search", option)
163
CommandResult commandResult = new
DotnetNewCommand
(_log, command.Split(" "))
184
CommandResult commandResult = new
DotnetNewCommand
(_log, "classli", "-h")
198
CommandResult commandResult = new
DotnetNewCommand
(_log, "Console App", "-h")
215
CommandResult commandResult = new
DotnetNewCommand
(_log, "basic", "--help")
231
CommandResult commandResult = new
DotnetNewCommand
(_log, "TestAssets.TemplateWithMultiValueChoice", "--help")
246
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--help", "--framework", "net7.0")
264
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--help", "--framework")
279
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--help", "--do-not-exist")
294
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--help", "--langVersion", "8.0")
309
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--help", "--language", "F#")
327
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--help", "--langVersion")
346
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName, "--help")
361
CommandResult commandResult = new
DotnetNewCommand
(_log, "TestAssets.TemplateWithRequiredParameters", "--help")
380
CommandResult commandResult = new
DotnetNewCommand
(_log, "TestAssets.TemplateWithConditionalParameters", "--help")
399
CommandResult commandResult = new
DotnetNewCommand
(_log, "basic", "--help")
418
CommandResult commandResult = new
DotnetNewCommand
(_log, "basic2", "--help")
DotnetNewHelpTests.cs (1)
22
new
DotnetNewCommand
(_log, "globaljson", "--help")
DotnetNewInstallTests.Approval.cs (17)
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")
51
CommandResult commandResult = new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ItemTemplates@6.0.100", "Microsoft.DotNet.Web.ItemTemplates@5.0.0")
72
CommandResult commandResult = new
DotnetNewCommand
(_log, commandName, "Microsoft.DotNet.Web.ItemTemplates@5.0.0")
89
CommandResult commandResult = new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Web.ItemTemplates@5.0.0")
105
CommandResult commandResult = new
DotnetNewCommand
(_log, "install", testTemplateLocation)
127
new
DotnetNewCommand
(_log, "install", basicFSharp)
134
CommandResult commandResult = new
DotnetNewCommand
(_log, "install", basicFSharp, "--force")
149
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.0.0")
156
CommandResult commandResult = new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.0.0", "--force")
170
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.0.0")
181
CommandResult commandResult = new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.0.0")
195
new
DotnetNewCommand
(_log, "install", basicFSharp)
205
new
DotnetNewCommand
(_log, "install", basicFSharp)
212
CommandResult commandResult = new
DotnetNewCommand
(_log, "install", basicFSharp)
228
CommandResult commandResult = new
DotnetNewCommand
(_log, "install", templateToInstall)
251
CommandResult commandResult = new
DotnetNewCommand
(_log, "install", templateToInstall)
DotnetNewInstallTests.cs (33)
29
new
DotnetNewCommand
(_log, commandName, "Microsoft.DotNet.Web.ProjectTemplates.5.0")
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")
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)
549
new
DotnetNewCommand
(_log, "-i", packageLocation)
560
new
DotnetNewCommand
(_log, "-i", packageLocation)
577
new
DotnetNewCommand
(_log, "-i", invalidTemplatePath)
594
new
DotnetNewCommand
(_log, "-i", invalidTemplatePath)
DotnetNewInstantiateTests.Approval.cs (34)
14
CommandResult commandResult = new
DotnetNewCommand
(_log, "unknownapp")
30
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--language", "D#")
46
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--type", "item")
67
CommandResult commandResult = new
DotnetNewCommand
(_log, "basic")
88
CommandResult commandResult = new
DotnetNewCommand
(_log, "basic")
117
CommandResult commandResult = new
DotnetNewCommand
(_log, "Console App")
136
CommandResult commandResult = new
DotnetNewCommand
(_log, "TestAssets.TemplateWithPreferDefaultNameButNoDefaultName")
154
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--fake")
172
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--framework", "fake")
190
var commandResult = new
DotnetNewCommand
(_log, "console", "--framework", "net")
208
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--framework", "netcoreapp", "--fake")
229
CommandResult commandResult = new
DotnetNewCommand
(_log, "basic")
269
CommandResult commandResult = new
DotnetNewCommand
(_log, args)
293
CommandResult commandResult = new
DotnetNewCommand
(_log, "TestAssets.TemplateWithMultiValueChoice", "--Platform", "")
316
CommandResult commandResult = new
DotnetNewCommand
(
349
CommandResult commandResult = new
DotnetNewCommand
(_log, "TestAssets.TemplateWithMultiValueChoice", "--Platform", "", "--Platform", "MacOS")
367
new
DotnetNewCommand
(_log, "TestAssets.TemplateConditionalProcessing")
394
CommandResult commandResult = new
DotnetNewCommand
(_log, "TestAssets.TemplateWithSourceNameAndCustomTargetPath", "-o", _OUT_FOLDER, "--dry-run")
425
new
DotnetNewCommand
(_log, "console", "--name", "overwrite-test", "-o", "folderA")
434
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--name", "overwrite-test", "-o", "folderA")
471
CommandResult commandResult = new
DotnetNewCommand
(_log, "TestAssets.Invalid.InvalidHostData")
496
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ItemTemplates@6.0.100", "--force")
502
CommandResult commandResult = new
DotnetNewCommand
(_log, "gitignore")
527
CommandResult commandResult = new
DotnetNewCommand
(_log, "sameshortname")
554
CommandResult commandResult = new
DotnetNewCommand
(_log, "Constraints.RestrictedTemplate")
576
CommandResult commandResult = new
DotnetNewCommand
(_log, "Constraints.RestrictedTemplate", "--force")
599
new
DotnetNewCommand
(_log, "install", templateLocation)
609
CommandResult commandResult = new
DotnetNewCommand
(_log, "TestAssets.TemplateWithSourceName")
629
CommandResult commandResult = new
DotnetNewCommand
(_log, "cnsle")
645
CommandResult commandResult = new
DotnetNewCommand
(_log, "uninstal")
665
CommandResult commandResult = new
DotnetNewCommand
(_log, "create", "TestAssets.TemplateWithSourceName")
687
CommandResult commandResult = new
DotnetNewCommand
(_log, parameters.Split("|"))
713
CommandResult commandResult = new
DotnetNewCommand
(_log, parameters.Split("|"))
738
CommandResult commandResult = new
DotnetNewCommand
(_log, parameters.Split("|"))
DotnetNewInstantiateTests.cs (30)
25
new
DotnetNewCommand
(_log, "console")
43
new
DotnetNewCommand
(_log, "console", "--alias", "csharpconsole")
52
new
DotnetNewCommand
(_log, "console", "-n", "MyConsole", "-o", "no-alias")
61
new
DotnetNewCommand
(_log, "csharpconsole", "-n", "MyConsole", "-o", "alias")
85
new
DotnetNewCommand
(_log, "basic")
100
Utils.CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--no-restore")
110
Utils.CommandResult forceCommandResult = new
DotnetNewCommand
(_log, "console", "--no-restore", "--force")
130
new
DotnetNewCommand
(_log, "webapp", "-o", "webapp")
139
new
DotnetNewCommand
(_log, "razor", "-o", "razor")
158
new
DotnetNewCommand
(_log, "TestAssets.TemplateWithBinaryFile")
185
new
DotnetNewCommand
(_log, "TestAssets.TemplateWithBinaryFile")
212
new
DotnetNewCommand
(_log, "TestAssets.TemplateWithParamsSharingPrefix")
263
new
DotnetNewCommand
(_log, "TestAssets.TemplateWithConditions", "--A", "true")
277
new
DotnetNewCommand
(_log, "TestAssets.TemplateWithConditions", "--A", "false")
291
new
DotnetNewCommand
(_log, "TestAssets.TemplateWithConditions", "--B", "true")
315
new
DotnetNewCommand
(_log, "TestAssets.TemplateWithPreferDefaultName", "-n", name)
345
new
DotnetNewCommand
(_log, templateName, "--dry-run")
358
Utils.CommandResult cmd = new
DotnetNewCommand
(Log)
374
Utils.CommandResult cmd = new
DotnetNewCommand
(Log)
383
Utils.CommandResult cmd = new
DotnetNewCommand
(Log)
394
Utils.CommandResult cmd = new
DotnetNewCommand
(Log)
410
CommandResult cmd = new
DotnetNewCommand
(Log, "console", languageOption, language, invalidOption)
422
Utils.CommandResult cmd = new
DotnetNewCommand
(Log)
433
Utils.CommandResult cmd = new
DotnetNewCommand
(Log)
450
new
DotnetNewCommand
(Log)
457
CommandResult result = new
DotnetNewCommand
(Log)
474
new
DotnetNewCommand
(Log)
490
new
DotnetNewCommand
(Log)
505
new
DotnetNewCommand
(Log)
520
new
DotnetNewCommand
(Log)
DotnetNewListTests.Approval.cs (5)
15
CommandResult commandResult = new
DotnetNewCommand
(_log, commandName)
34
CommandResult commandResult = new
DotnetNewCommand
(_log, "list")
100
CommandResult commandResult = new
DotnetNewCommand
(_log, "list", "RestrictedTemplate")
118
CommandResult commandResult = new
DotnetNewCommand
(_log, "list", "RestrictedTemplate", "--ignore-constraints")
135
CommandResult commandResult = new
DotnetNewCommand
(_log, "list")
DotnetNewListTests.cs (44)
27
new
DotnetNewCommand
(_log, command.Split(" "))
46
new
DotnetNewCommand
(_log, command.Split(" "))
63
new
DotnetNewCommand
(_log, command.Split(" "))
83
new
DotnetNewCommand
(_log, command.Split(" "))
102
new
DotnetNewCommand
(_log, "--install", "Microsoft.DotNet.Web.ProjectTemplates.5.0")
112
new
DotnetNewCommand
(_log, "--list")
123
new
DotnetNewCommand
(_log, "webapp", "--list")
134
new
DotnetNewCommand
(_log, "razor", "--list")
151
new
DotnetNewCommand
(_log, "--list")
163
new
DotnetNewCommand
(_log, "c", "--list")
175
new
DotnetNewCommand
(_log, "c", "--list", "--framework")
187
new
DotnetNewCommand
(_log, "c", "--list", "-f")
200
new
DotnetNewCommand
(_log, "--list", "--framework")
212
new
DotnetNewCommand
(_log, "--list", "-f")
231
new
DotnetNewCommand
(_log, "--list")
243
new
DotnetNewCommand
(_log, "c", "--list")
255
new
DotnetNewCommand
(_log, "c", "--list", "--langVersion")
267
new
DotnetNewCommand
(_log, "--list", "--langVersion")
285
new
DotnetNewCommand
(_log, "--list")
297
new
DotnetNewCommand
(_log, "c", "--list")
309
new
DotnetNewCommand
(_log, "c", "--list", "--no-restore", "invalid")
321
new
DotnetNewCommand
(_log, "--list", "--no-restore", "invalid")
339
new
DotnetNewCommand
(_log, "--list")
351
new
DotnetNewCommand
(_log, "c", "--list")
363
new
DotnetNewCommand
(_log, "c", "--list", "--framework", "net5.0")
375
new
DotnetNewCommand
(_log, "c", "--list", "-f", "net5.0")
387
new
DotnetNewCommand
(_log, "--list", "--framework", "net5.0")
399
new
DotnetNewCommand
(_log, "--list", "-f", "net5.0")
417
new
DotnetNewCommand
(_log, "--list")
429
new
DotnetNewCommand
(_log, "--list", "--unknown")
437
new
DotnetNewCommand
(_log, "c", "--list", "--unknown")
445
new
DotnetNewCommand
(_log, "c", "--list", "--unknown", "--language", "C#")
459
new
DotnetNewCommand
(_log, "--list")
471
new
DotnetNewCommand
(_log, "--list", "--framework", "unknown")
479
new
DotnetNewCommand
(_log, "c", "--list", "--framework", "unknown")
493
new
DotnetNewCommand
(_log, "--list")
505
new
DotnetNewCommand
(_log, "--list", "--language", "unknown", "--framework", "unknown")
513
new
DotnetNewCommand
(_log, "c", "--list", "--language", "unknown", "--framework", "unknown")
529
new
DotnetNewCommand
(_log, "--list", "--columns-all")
549
new
DotnetNewCommand
(_log, "--install", "Microsoft.DotNet.Web.ProjectTemplates.5.0")
556
new
DotnetNewCommand
(_log, "list", "--columns", columnName)
573
CommandResult commandResult1 = new
DotnetNewCommand
(_log, command1.Split())
577
CommandResult commandResult2 = new
DotnetNewCommand
(_log, command2.Split())
598
CommandResult commandResult = new
DotnetNewCommand
(_log, command.Split())
DotnetNewLocaleTests.cs (8)
30
CommandResult commandResult = new
DotnetNewCommand
(_log, "-i", testTemplatesFolder)
54
CommandResult commandResult = new
DotnetNewCommand
(_log, "-i", testTemplatesFolder)
74
new
DotnetNewCommand
(_log, "-i", testTemplateLocation)
117
CommandResult commandResult = new
DotnetNewCommand
(_log, "-i", testTemplateLocation)
145
new
DotnetNewCommand
(_log, "-i", tmpTemplateLocation)
165
new
DotnetNewCommand
(_log, "TestAssets.TemplateWithLocalization")
198
CommandResult result = new
DotnetNewCommand
(_log, "-i", tmpTemplateLocation)
225
result = new
DotnetNewCommand
(_log, "TestAssets.TemplateWithLocalization")
DotnetNewSearchTests.Approval.cs (2)
15
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase)
32
CommandResult commandResult = new
DotnetNewCommand
(_log, "search", "do-not-exist")
DotnetNewSearchTests.cs (33)
25
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
53
new
DotnetNewCommand
(_log, testCase.Split(" "))
68
new
DotnetNewCommand
(_log, testCase.Split(" "))
81
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
110
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
137
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
168
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
197
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
228
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
260
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
293
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
323
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
354
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
385
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
416
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
447
CommandResult commandResult = new
DotnetNewCommand
(_log, testCase.Split(" "))
487
CommandResult commandResult = new
DotnetNewCommand
(_log, "con", "--search", "--framework")
508
commandResult = new
DotnetNewCommand
(_log, "con", "--search", "-f")
528
commandResult = new
DotnetNewCommand
(_log, "--search", "-f")
553
CommandResult commandResult = new
DotnetNewCommand
(_log, "con", "--search", "--langVersion")
574
commandResult = new
DotnetNewCommand
(_log, "--search", "--langVersion")
600
CommandResult commandResult = new
DotnetNewCommand
(_log, "con", "--search", "--langVersion", "smth")
621
commandResult = new
DotnetNewCommand
(_log, "--search", "--langVersion", "smth")
647
CommandResult commandResult = new
DotnetNewCommand
(_log, "con", "--search", "-f", "netcoreapp3.1")
668
commandResult = new
DotnetNewCommand
(_log, "--search", "-f", "net5.0")
694
new
DotnetNewCommand
(_log, "--search", "--unknown")
700
new
DotnetNewCommand
(_log, "con", "--search", "--unknown")
706
new
DotnetNewCommand
(_log, "con", "--search", "--unknown", "--language", "C#")
719
CommandResult commandResult1 = new
DotnetNewCommand
(_log, command1.Split())
723
CommandResult commandResult2 = new
DotnetNewCommand
(_log, command2.Split())
742
CommandResult commandResult = new
DotnetNewCommand
(_log, command.Split())
768
CommandResult commandResult = new
DotnetNewCommand
(_log, "--search", "console")
782
CommandResult commandResult = new
DotnetNewCommand
(_log, "search", "console")
DotnetNewTests.cs (8)
22
CommandResult commandResult = new
DotnetNewCommand
(_log)
39
CommandResult commandResult = new
DotnetNewCommand
(_log, "search", "template-does-not-exist", optionName, optionValue)
52
CommandResult commandResult = new
DotnetNewCommand
(_log, "search", "template-does-not-exist")
71
CommandResult commandResult = new
DotnetNewCommand
(_log, "search", "template-does-not-exist", optionName, optionValue)
91
CommandResult commandResult = new
DotnetNewCommand
(_log, "search", "template-does-not-exist", optionName, optionValue)
112
CommandResult commandResult = new
DotnetNewCommand
(
131
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--dry-run")
151
CommandResult commandResult = new
DotnetNewCommand
(_log, "console", "--dry-run")
DotnetNewTestTemplatesTests.cs (6)
68
new
DotnetNewCommand
(dummyLog, "uninstall", templatePackagePath)
73
new
DotnetNewCommand
(dummyLog, "install", templatePackagePath)
91
new
DotnetNewCommand
(_log, args)
101
new
DotnetNewCommand
(_log, $"{itemTemplate} -n {itemName} -lang {language} -o {outputDirectory}")
145
new
DotnetNewCommand
(_log, args)
191
new
DotnetNewCommand
(_log, args)
DotnetNewUninstallTests.Approval.cs (2)
16
CommandResult commandResult = new
DotnetNewCommand
(_log, "uninstall")
38
CommandResult commandResult = new
DotnetNewCommand
(_log, "uninstall", "TemplateWithRequiredParameters")
DotnetNewUninstallTests.cs (35)
29
new
DotnetNewCommand
(_log, commandName)
48
new
DotnetNewCommand
(_log, "-i", "Microsoft.DotNet.Web.ProjectTemplates.5.0::5.0.0")
60
new
DotnetNewCommand
(_log, commandName)
81
new
DotnetNewCommand
(_log, commandName)
102
new
DotnetNewCommand
(_log, commandName)
113
new
DotnetNewCommand
(_log, commandName, templateLocation)
123
new
DotnetNewCommand
(_log, commandName)
143
new
DotnetNewCommand
(_log, "-i", "Microsoft.DotNet.Web.ProjectTemplates.5.0::5.0.0")
155
new
DotnetNewCommand
(_log, commandName)
176
new
DotnetNewCommand
(_log, commandName, packageNameToUnisntall)
186
new
DotnetNewCommand
(_log, commandName)
207
new
DotnetNewCommand
(_log, "-i", "Microsoft.DotNet.Web.ProjectTemplates.5.0", "-i", "Microsoft.DotNet.Common.ProjectTemplates.5.0")
220
new
DotnetNewCommand
(_log, "-u", "Microsoft.DotNet.Common.ProjectTemplates.5.0", "-u", basicFSharp)
231
new
DotnetNewCommand
(_log, "-u")
253
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Web.ProjectTemplates.5.0", "Microsoft.DotNet.Common.ProjectTemplates.5.0")
266
new
DotnetNewCommand
(_log, "uninstall", "Microsoft.DotNet.Common.ProjectTemplates.5.0", basicFSharp)
277
new
DotnetNewCommand
(_log, "uninstall")
297
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Web.ProjectTemplates.5.0::5.0.0")
309
new
DotnetNewCommand
(_log, commandName, "Microsoft.DotNet.Common.ProjectTemplates.5.0")
325
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0::5.0.0")
334
new
DotnetNewCommand
(_log, commandName, "console")
353
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0::5.0.0")
362
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.3.1::5.0.0")
371
new
DotnetNewCommand
(_log, commandName, "console")
394
new
DotnetNewCommand
(_log, "install", pattern)
409
new
DotnetNewCommand
(_log, commandName)
419
new
DotnetNewCommand
(_log, commandName, pattern)
428
new
DotnetNewCommand
(_log, commandName)
443
new
DotnetNewCommand
(_log, "-i", pattern)
455
new
DotnetNewCommand
(_log, "-u")
463
new
DotnetNewCommand
(_log, "-u", pattern)
470
new
DotnetNewCommand
(_log, "-u")
495
new
DotnetNewCommand
(_log, "-u")
520
CommandResult commandResult = new
DotnetNewCommand
(_log, commandName)
535
CommandResult commandResult = new
DotnetNewCommand
(_log, "uninstall")
DotnetNewUpdateTests.Approval.cs (3)
16
CommandResult commandResult = new
DotnetNewCommand
(_log, "update")
32
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0::5.0.0")
43
CommandResult commandResult = new
DotnetNewCommand
(_log, "update")
DotnetNewUpdateTests.cs (21)
22
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0::5.0.0")
34
new
DotnetNewCommand
(_log, testCase.Split(" "))
66
new
DotnetNewCommand
(_log, "--update-check")
87
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0")
99
new
DotnetNewCommand
(_log, testCase.Split(" "))
114
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0::5.0.0")
126
new
DotnetNewCommand
(_log, "console")
144
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0::5.0.0")
156
new
DotnetNewCommand
(_log, "console", "--no-update-check", "-o", "no-update-check")
169
new
DotnetNewCommand
(_log, "console", "-o", "update-check")
187
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0")
199
new
DotnetNewCommand
(_log, "console")
222
Utils.CommandResult commandResult = new
DotnetNewCommand
(_log, "--update-check")
237
Utils.CommandResult commandResult = new
DotnetNewCommand
(_log, "update", "--check-only")
254
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0::5.0.0")
266
new
DotnetNewCommand
(_log, "update", "--check-only")
281
new
DotnetNewCommand
(_log, testCase)
305
new
DotnetNewCommand
(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0")
317
new
DotnetNewCommand
(_log, commandName)
337
Utils.CommandResult commandResult = new
DotnetNewCommand
(_log, "--update-apply")
352
Utils.CommandResult commandResult = new
DotnetNewCommand
(_log, "update")
FileRenameTests.cs (1)
21
new
DotnetNewCommand
(_log, "TestAssets.TemplateWithFileRenameDate", "--migrationName", "MyTestName")
FirstRunTest.cs (2)
19
new
DotnetNewCommand
(_log)
27
new
DotnetNewCommand
(_log, "--list")
MSBuildEvaluationTests.cs (18)
22
CommandResult cmd = new
DotnetNewCommand
(Log)
27
cmd = new
DotnetNewCommand
(Log)
35
cmd = new
DotnetNewCommand
(Log)
60
CommandResult cmd = new
DotnetNewCommand
(Log)
65
cmd = new
DotnetNewCommand
(Log)
73
cmd = new
DotnetNewCommand
(Log)
99
CommandResult cmd = new
DotnetNewCommand
(Log)
105
cmd = new
DotnetNewCommand
(Log)
110
cmd = new
DotnetNewCommand
(Log)
116
cmd = new
DotnetNewCommand
(Log)
124
cmd = new
DotnetNewCommand
(Log)
139
CommandResult cmd = new
DotnetNewCommand
(Log)
144
cmd = new
DotnetNewCommand
(Log)
150
cmd = new
DotnetNewCommand
(Log)
158
cmd = new
DotnetNewCommand
(Log)
167
cmd = new
DotnetNewCommand
(Log)
191
CommandResult cmd = new
DotnetNewCommand
(Log)
198
cmd = new
DotnetNewCommand
(Log)
PostActionTests.Approval.cs (10)
18
CommandResult commandResult = new
DotnetNewCommand
(_log, "TestAssets.PostActions.RestoreNuGet.Basic", "-n", "MyProject")
50
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName, "--allow-scripts", "yes")
73
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName, "-n", "MyProject")
104
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName, "-n", "MyProject")
136
new
DotnetNewCommand
(_log, "sln", "-n", "MySolution")
144
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName, "-n", "MyProject")
175
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName)
197
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName, "-n", "MyProject", "--dry-run")
221
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName)
241
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName, "--allow-scripts", "no")
PostActionTests.cs (48)
35
new
DotnetNewCommand
(_log, templateName, "-n", "MyProject")
70
new
DotnetNewCommand
(_log, expectedTemplateName, "-n", "MyProject", "-o", outputDirectory)
106
new
DotnetNewCommand
(_log, expectedTemplateName, "-n", "MyProject", "-o", outputDirectory)
142
new
DotnetNewCommand
(_log, templateName, "-n", "MyProject", "--firstRename", "Awesome")
177
new
DotnetNewCommand
(_log, templateName, "-n", "TemplateApplication")
219
new
DotnetNewCommand
(_log, templateName, "-n", "TemplateApplication")
272
var result = new
DotnetNewCommand
(_log, templateName, "-n", rename)
318
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName, "--allow-scripts", "yes")
351
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName, "--allow-scripts", "yes")
376
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName, "--allow-scripts", "yes")
401
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName, "--allow-scripts", "yes")
435
new
DotnetNewCommand
(_log, templateName)
466
new
DotnetNewCommand
(_log, expectedTemplateName, "-o", outputDirectory, "-n", "MyProject")
497
new
DotnetNewCommand
(_log, expectedTemplateName, "-o", "output", "-n", "MyProject")
528
new
DotnetNewCommand
(_log, expectedTemplateName)
568
new
DotnetNewCommand
(_log)
573
new
DotnetNewCommand
(_log, expectedTemplateName)
615
new
DotnetNewCommand
(_log)
620
new
DotnetNewCommand
(_log, expectedTemplateName, "--existingProject", "src/AlreadyExisting/AlreadyExisting.csproj")
657
new
DotnetNewCommand
(_log, expectedTemplateName, "-o", outputDirectory)
687
new
DotnetNewCommand
(_log, expectedTemplateName, "-o", "output")
718
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName)
758
new
DotnetNewCommand
(_log, "sln", "-n", "MySolution")
766
new
DotnetNewCommand
(_log, templateName, "-n", "MyProject")
792
new
DotnetNewCommand
(_log, "sln", "-n", "MySolution", "-o", outputDirectory)
800
new
DotnetNewCommand
(_log, expectedTemplateName, "-n", "MyProject", "-o", outputDirectory)
828
new
DotnetNewCommand
(_log, "sln", "-n", "MySolution", "-o", outputDirectory)
836
new
DotnetNewCommand
(_log, expectedTemplateName, "-n", "MyProject", "-o", outputDirectory)
864
new
DotnetNewCommand
(_log, "sln", "-n", "MySolution", "-o", outputDirectory)
872
new
DotnetNewCommand
(_log, expectedTemplateName, "-n", "MyProject", "-o", outputDirectory)
899
new
DotnetNewCommand
(_log, "sln", "-n", "MySolution")
907
new
DotnetNewCommand
(_log, expectedTemplateName)
937
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName)
958
CommandResult cmd = new
DotnetNewCommand
(Log)
963
cmd = new
DotnetNewCommand
(Log)
979
CommandResult cmd = new
DotnetNewCommand
(Log)
984
cmd = new
DotnetNewCommand
(Log)
998
CommandResult cmd = new
DotnetNewCommand
(Log)
1003
cmd = new
DotnetNewCommand
(Log)
1016
CommandResult cmd = new
DotnetNewCommand
(Log)
1036
new
DotnetNewCommand
(_log, templateName)
1065
new
DotnetNewCommand
(_log, "sln", "-n", "MySolution")
1076
new
DotnetNewCommand
(_log, existingProjectTemplateName, "-o", "ExistingProject")
1089
new
DotnetNewCommand
(_log, myProjectTemplateName, "-o", "custommodule1", "-n", "custommodule1")
1114
new
DotnetNewCommand
(_log, templateName, "-n", "TheProjectName")
1145
new
DotnetNewCommand
(_log, templateName, "-n", "TheProjectName")
1180
new
DotnetNewCommand
(_log, templateName)
1207
new
DotnetNewCommand
(_log, templateName, "-o", "SolutionFolder/SomeTestFolder")
SharedHomeDirectory.cs (6)
49
new
DotnetNewCommand
(Log, args.ToArray())
61
new
DotnetNewCommand
(Log)
70
new
DotnetNewCommand
(Log, "install", TemplatePackagesPaths.MicrosoftDotNetCommonProjectTemplates60Path)
79
new
DotnetNewCommand
(Log, "install", TemplatePackagesPaths.MicrosoftDotNetCommonProjectTemplates70Path)
87
new
DotnetNewCommand
(Log, "install", TemplatePackagesPaths.MicrosoftDotNetCommonProjectTemplates80Path)
95
new
DotnetNewCommand
(Log, "install", TemplatePackagesPaths.MicrosoftDotNetCommonProjectTemplates90Path)
SourcesTests.cs (2)
21
new
DotnetNewCommand
(_log, "withexclude")
32
new
DotnetNewCommand
(_log, "withoutexclude")
TemplateDiscoveryTests.cs (7)
47
new
DotnetNewCommand
(_log)
56
new
DotnetNewCommand
(_log, "search", "func")
147
new
DotnetNewCommand
(_log)
156
new
DotnetNewCommand
(_log, "search", "CliHostFile")
168
new
DotnetNewCommand
(_log, "search", "--param")
180
new
DotnetNewCommand
(_log, "search", "-p")
192
new
DotnetNewCommand
(_log, "search", "--test-param")
TemplateDiscoveryTool.cs (1)
21
new
DotnetNewCommand
(
WebProjectsTests.cs (4)
45
new
DotnetNewCommand
(_log, args)
76
CommandResult commandResult = new
DotnetNewCommand
(_log, "webapi", "-h")
93
CommandResult commandResult = new
DotnetNewCommand
(_log, "mvc", "-h")
113
CommandResult commandResult = new
DotnetNewCommand
(_log, templateName, "-h")
EndToEnd.Tests (11)
GivenDotNetUsesMSBuild.cs (1)
18
new
DotnetNewCommand
(Log)
GivenSelfContainedAppsRollForward.cs (2)
19
new
DotnetNewCommand
(Log, "web", "--no-restore")
46
new
DotnetNewCommand
(Log, "web", "--no-restore")
ProjectBuildTests.cs (8)
18
new
DotnetNewCommand
(Log, "console", "--no-restore")
60
new
DotnetNewCommand
(Log, "console", "--no-restore")
97
new
DotnetNewCommand
(Log)
136
new
DotnetNewCommand
(Log)
209
new
DotnetNewCommand
(Log)
230
new
DotnetNewCommand
(Log)
278
new
DotnetNewCommand
(Log)
505
new
DotnetNewCommand
(Log)
Microsoft.NET.Build.Tests (8)
EvaluatorFastPathTests.cs (1)
39
new
DotnetNewCommand
(Log, alias)
GivenThatWeWantToBuildALibrary.cs (1)
673
new
DotnetNewCommand
(Log)
GivenThatWeWantToBuildAWindowsDesktopProject.cs (2)
149
new
DotnetNewCommand
(Log, "wpf", "--no-restore")
255
new
DotnetNewCommand
(Log)
GivenThatWeWantToUseVB.cs (1)
180
new
DotnetNewCommand
(Log, "wpf", "-lang", "vb")
GlobalPropertyFlowTests.cs (1)
184
new
DotnetNewCommand
(Log, "sln")
ReferenceExeTests.cs (2)
349
new
DotnetNewCommand
(Log, testTemplateName)
493
new
DotnetNewCommand
(Log, testTemplateName)
Microsoft.NET.Publish.Tests (4)
GivenThatWeWantToPublishIncrementally.cs (1)
184
new
DotnetNewCommand
(Log)
GivenThatWeWantToPublishTrimmedWindowsFormsAndWPFApps.cs (2)
119
new
DotnetNewCommand
(Log)
191
new
DotnetNewCommand
(Log)
PublishWpfApp.cs (1)
19
new
DotnetNewCommand
(Log)
Microsoft.NET.TestFramework (1)
TestAssetsManager.cs (1)
102
var slnCreationResult = new
DotnetNewCommand
(Log, "sln", "--format", "sln")
7 references to DotnetNewCommand
dotnet-new.IntegrationTests (2)
BaseIntegrationTest.cs (2)
92
DotnetNewCommand
command = new DotnetNewCommand(log, "-i", packageName)
122
DotnetNewCommand
command = new DotnetNewCommand(log, "install", testTemplate)
Microsoft.NET.TestFramework (5)
Commands\DotnetNewCommand.cs (5)
19
public
DotnetNewCommand
WithVirtualHive()
27
public
DotnetNewCommand
WithCustomHive(string path)
35
public
DotnetNewCommand
WithoutCustomHive()
41
public
DotnetNewCommand
WithoutBuiltInTemplates()
47
public
DotnetNewCommand
WithDebug()