Skip to content

Commit eb98b48

Browse files
committed
Added tests for #310
1 parent 6a4b863 commit eb98b48

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

components/SettingsControls/tests/Test_SettingsCard.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ namespace SettingsControlsExperiment.Tests;
1111
[TestClass]
1212
public partial class SettingsCardTestClass : VisualUITestBase
1313
{
14+
[UIThreadTestMethod]
15+
public void EmptyNameTest(SettingsCard card)
16+
{
17+
// See https://github.com/CommunityToolkit/Windows/issues/310#issue-2066181868
18+
card.Name = string.Empty;
19+
}
20+
21+
[UIThreadTestMethod]
22+
public void EmptyDescriptionTest(SettingsCard card)
23+
{
24+
// See https://github.com/CommunityToolkit/Windows/issues/310#issue-2066181868
25+
card.Description = string.Empty;
26+
}
27+
1428
// If you don't need access to UI objects directly or async code, use this pattern.
1529
[TestMethod]
1630
public void SimpleSynchronousExampleTest()

0 commit comments

Comments
 (0)