Skip to content

Commit 530879a

Browse files
Copilotbaronfel
andcommitted
Add tests for slnf template with --parent-solution and -s parameters
Co-authored-by: baronfel <[email protected]>
1 parent 4999bbd commit 530879a

File tree

5 files changed

+17
-0
lines changed
  • test/dotnet-new.IntegrationTests

5 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"solution": {
3+
"path": "Parent.slnx",
4+
"projects": []
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The template "%TEMPLATE_NAME%" was created successfully.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"solution": {
3+
"path": "Parent.slnx",
4+
"projects": []
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The template "%TEMPLATE_NAME%" was created successfully.

test/dotnet-new.IntegrationTests/CommonTemplatesTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ public CommonTemplatesTests(SharedHomeDirectory fixture, ITestOutputHelper log)
4646
[InlineData("Solution File", "sln", new[] { "--format", "sln" })]
4747
[InlineData("Solution File", "sln", new[] { "--format", "slnx" })]
4848
[InlineData("Solution File", "solution", null)]
49+
[InlineData("Solution Filter File", "slnf", new[] { "--parent-solution", "Parent.slnx" })]
50+
[InlineData("Solution Filter File", "slnf", new[] { "-s", "Parent.slnx" })]
51+
[InlineData("Solution Filter File", "solutionfilter", new[] { "--parent-solution", "Parent.slnx" })]
4952
[InlineData("Dotnet local tool manifest file", "tool-manifest", null)]
5053
[InlineData("Web Config", "webconfig", null)]
5154
[InlineData("EditorConfig file", "editorconfig", null)]

0 commit comments

Comments
 (0)