Skip to content

Commit 88ef27f

Browse files
committed
Adding icon property to test
1 parent eb785c4 commit 88ef27f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CommunityToolkit.Tooling.SampleGen.Tests/ToolkitSampleMetadataTests.Documentation.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Without any front matter.
5050
[DataRow(8, DisplayName = "Subcategory")]
5151
[DataRow(9, DisplayName = "GitHub Discussion Id")]
5252
[DataRow(10, DisplayName = "GitHub Issue Id")]
53+
[DataRow(10, DisplayName = "Icon")]
5354
[TestMethod]
5455
public void MissingFrontMatterField(int removeline)
5556
{
@@ -64,6 +65,7 @@ public void MissingFrontMatterField(int removeline)
6465
subcategory: Layout
6566
discussion-id: 0
6667
issue-id: 0
68+
icon: assets/icon.png
6769
---
6870
# This is some test documentation...
6971
> [!SAMPLE Sample]
@@ -91,6 +93,7 @@ public void MarkdownInvalidSampleReference()
9193
subcategory: Layout
9294
discussion-id: 0
9395
issue-id: 0
96+
icon: assets/icon.png
9497
---
9598
# This is some test documentation...
9699
> [!SAMPLE SampINVALIDle]
@@ -116,6 +119,7 @@ public void DocumentationMissingSample()
116119
subcategory: Layout
117120
discussion-id: 0
118121
issue-id: 0
122+
icon: assets/icon.png
119123
---
120124
# This is some test documentation...
121125
Without any sample.";
@@ -139,6 +143,7 @@ public void DocumentationValid()
139143
subcategory: Layout
140144
discussion-id: 0
141145
issue-id: 0
146+
icon: assets/icon.png
142147
---
143148
# This is some test documentation...
144149
Which is valid.
@@ -161,6 +166,7 @@ public void DocumentationInvalidDiscussionId()
161166
subcategory: Layout
162167
discussion-id: https://github.com/1234
163168
issue-id: 0
169+
icon: assets/icon.png
164170
---
165171
# This is some test documentation...
166172
Without an invalid discussion id.";
@@ -184,6 +190,7 @@ public void DocumentationInvalidIssueId()
184190
subcategory: Layout
185191
discussion-id: 0
186192
issue-id: https://github.com/1234
193+
icon: assets/icon.png
187194
---
188195
# This is some test documentation...
189196
Without an invalid discussion id.";

0 commit comments

Comments
 (0)