Skip to content

Commit 546a15c

Browse files
Add PopupDefaults Test
1 parent 913ab04 commit 546a15c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/CommunityToolkit.Maui.UnitTests/Views/Popup/PopupTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ public void PopupBackgroundColor_DefaultValue_ShouldBeWhite()
1414
{
1515
Assert.Equal(PopupDefaults.BackgroundColor, Colors.White);
1616
}
17+
18+
[Fact]
19+
public void CanBeDismissedByTappingOutsideOfPopup_DefaultValue_ShouldBeTrue()
20+
{
21+
var popup = new Popup();
22+
Assert.Equal(PopupDefaults.CanBeDismissedByTappingOutsideOfPopup, popup.CanBeDismissedByTappingOutsideOfPopup);
23+
}
1724

1825
[Fact]
1926
public void Margin_DefaultValue_ShouldBeDefaultThickness()

0 commit comments

Comments
 (0)