From eb98b48266df91635fe7d3ee3fed5fa17b8cf928 Mon Sep 17 00:00:00 2001 From: Arlo Godfrey Date: Mon, 8 Jan 2024 20:02:21 -0600 Subject: [PATCH] Added tests for #310 --- .../SettingsControls/tests/Test_SettingsCard.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/components/SettingsControls/tests/Test_SettingsCard.cs b/components/SettingsControls/tests/Test_SettingsCard.cs index f4928c53..3ba535b6 100644 --- a/components/SettingsControls/tests/Test_SettingsCard.cs +++ b/components/SettingsControls/tests/Test_SettingsCard.cs @@ -11,6 +11,20 @@ namespace SettingsControlsExperiment.Tests; [TestClass] public partial class SettingsCardTestClass : VisualUITestBase { + [UIThreadTestMethod] + public void EmptyNameTest(SettingsCard card) + { + // See https://github.com/CommunityToolkit/Windows/issues/310#issue-2066181868 + card.Name = string.Empty; + } + + [UIThreadTestMethod] + public void EmptyDescriptionTest(SettingsCard card) + { + // See https://github.com/CommunityToolkit/Windows/issues/310#issue-2066181868 + card.Description = string.Empty; + } + // If you don't need access to UI objects directly or async code, use this pattern. [TestMethod] public void SimpleSynchronousExampleTest()