Skip to content

Commit

Permalink
Added tests for #310
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Jan 9, 2024
1 parent 6a4b863 commit eb98b48
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions components/SettingsControls/tests/Test_SettingsCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit eb98b48

Please sign in to comment.