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)
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")
64
InstallTestTemplate("TemplateResolution/DifferentLanguagesGroup/BasicFSharp",
_log
, home, workingDirectory);
65
InstallTestTemplate("TemplateResolution/DifferentLanguagesGroup/BasicVB",
_log
, home, workingDirectory);
67
CommandResult commandResult = new DotnetNewCommand(
_log
, "basic")
85
string templateOneLocation = InstallTestTemplate("TemplateResolution/SameShortName/BasicFSharp",
_log
, home, workingDirectory);
86
string templateTwoLocation = InstallTestTemplate("TemplateResolution/SameShortName/BasicVB",
_log
, home, workingDirectory);
88
CommandResult commandResult = new DotnetNewCommand(
_log
, "basic")
117
CommandResult commandResult = new DotnetNewCommand(
_log
, "Console App")
134
InstallTestTemplate("TemplateWithPreferDefaultNameButNoDefaultName",
_log
, home, workingDirectory);
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")
226
string templateOneLocation = InstallTestTemplate("TemplateResolution/SamePrecedenceGroup/BasicTemplate1",
_log
, home, workingDirectory);
227
string templateTwoLocation = InstallTestTemplate("TemplateResolution/SamePrecedenceGroup/BasicTemplate2",
_log
, home, workingDirectory);
229
CommandResult commandResult = new DotnetNewCommand(
_log
, "basic")
267
InstallTestTemplate("TemplateWithMultiValueChoice",
_log
, home, workingDirectory);
269
CommandResult commandResult = new DotnetNewCommand(
_log
, args)
291
InstallTestTemplate("TemplateWithMultiValueChoice",
_log
, home, workingDirectory);
293
CommandResult commandResult = new DotnetNewCommand(
_log
, "TestAssets.TemplateWithMultiValueChoice", "--Platform", "")
314
InstallTestTemplate("TemplateWithConditionalParameters",
_log
, home, workingDirectory);
317
_log
,
347
InstallTestTemplate("TemplateWithMultiValueChoice",
_log
, home, workingDirectory);
349
CommandResult commandResult = new DotnetNewCommand(
_log
, "TestAssets.TemplateWithMultiValueChoice", "--Platform", "", "--Platform", "MacOS")
365
InstallTestTemplate($"TemplateConditionalProcessing",
_log
, home, workingDirectory);
367
new DotnetNewCommand(
_log
, "TestAssets.TemplateConditionalProcessing")
392
InstallTestTemplate("TemplateWithSourceNameAndCustomTargetPath",
_log
, home, workingDirectory);
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")
469
string templateLocation = InstallTestTemplate("Invalid/InvalidHostData",
_log
, home, workingDirectory);
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")
525
string templateLocation = InstallTestTemplate("Invalid/SameShortName",
_log
, home, workingDirectory);
527
CommandResult commandResult = new DotnetNewCommand(
_log
, "sameshortname")
552
InstallTestTemplate("Constraints/RestrictedTemplate",
_log
, customHivePath);
554
CommandResult commandResult = new DotnetNewCommand(
_log
, "Constraints.RestrictedTemplate")
574
InstallTestTemplate("Constraints/RestrictedTemplate",
_log
, customHivePath);
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")
662
InstallTestTemplate("TemplateWithSourceName",
_log
, customHivePath);
663
InstallTestTemplate("TemplateWithConflictShortName",
_log
, customHivePath);
665
CommandResult commandResult = new DotnetNewCommand(
_log
, "create", "TestAssets.TemplateWithSourceName")
685
InstallTestTemplate("TemplateWithRequiredParameters",
_log
, homeDirectory, workingDirectory);
687
CommandResult commandResult = new DotnetNewCommand(
_log
, parameters.Split("|"))
711
InstallTestTemplate("TemplateWithConditionalParameters",
_log
, homeDirectory, workingDirectory);
713
CommandResult commandResult = new DotnetNewCommand(
_log
, parameters.Split("|"))
736
InstallTestTemplate("TemplateWithRequiredParameters",
_log
, homeDirectory, workingDirectory);
738
CommandResult commandResult = new DotnetNewCommand(
_log
, parameters.Split("|"))
DotnetNewInstantiateTests.cs (26)
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")
83
InstallTestTemplate("TemplateResolution/DifferentLanguagesGroup/BasicFSharp",
_log
, home, workingDirectory);
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")
128
InstallNuGetTemplate("Microsoft.DotNet.Web.ProjectTemplates.5.0",
_log
, home, workingDirectory);
130
new DotnetNewCommand(
_log
, "webapp", "-o", "webapp")
139
new DotnetNewCommand(
_log
, "razor", "-o", "razor")
156
InstallTestTemplate(templateLocation,
_log
, home, workingDirectory);
158
new DotnetNewCommand(
_log
, "TestAssets.TemplateWithBinaryFile")
182
string packageLocation = PackTestNuGetPackage(
_log
);
183
InstallNuGetTemplate(packageLocation,
_log
, home, workingDirectory);
185
new DotnetNewCommand(
_log
, "TestAssets.TemplateWithBinaryFile")
209
InstallTestTemplate(templateLocation,
_log
, home, workingDirectory);
212
new DotnetNewCommand(
_log
, "TestAssets.TemplateWithParamsSharingPrefix")
262
InstallTestTemplate("TemplateWithConditions",
_log
, home, workingDirectory);
263
new DotnetNewCommand(
_log
, "TestAssets.TemplateWithConditions", "--A", "true")
277
new DotnetNewCommand(
_log
, "TestAssets.TemplateWithConditions", "--A", "false")
291
new DotnetNewCommand(
_log
, "TestAssets.TemplateWithConditions", "--B", "true")
312
InstallTestTemplate("TemplateWithPreferDefaultName",
_log
, home, workingDirectory);
315
new DotnetNewCommand(
_log
, "TestAssets.TemplateWithPreferDefaultName", "-n", name)
341
_log
,
345
new DotnetNewCommand(
_log
, templateName, "--dry-run")