A game framework written with osu! in mind.

Add failing test case

+18
+18
osu.Framework.Tests/Visual/UserInterface/TestScenePopoverContainer.cs
··· 151 151 } 152 152 153 153 [Test] 154 + public void TestShowHideViaExtensionMethod() 155 + { 156 + createContent(button => new BasicPopover 157 + { 158 + Child = new SpriteText 159 + { 160 + Text = $"{button.Anchor} popover" 161 + } 162 + }); 163 + 164 + AddStep("show popover manually", () => this.ChildrenOfType<DrawableWithPopover>().First().ShowPopover()); 165 + AddAssert("popover shown", () => this.ChildrenOfType<Popover>().Any(popover => popover.State.Value == Visibility.Visible)); 166 + 167 + AddStep("hide popover manually", () => popoverContainer.HidePopover()); 168 + AddAssert("all hidden", () => this.ChildrenOfType<Popover>().All(popover => popover.State.Value != Visibility.Visible)); 169 + } 170 + 171 + [Test] 154 172 public void TestClickBetweenMultiple() 155 173 { 156 174 createContent(button => new BasicPopover