1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:17:26 +08:00

Add test coverage for correct operation of flag extension

This commit is contained in:
Bartłomiej Dach 2022-12-19 21:31:54 +01:00
parent 7c282d9def
commit 30b9f5d92e
No known key found for this signature in database

View File

@ -18,6 +18,7 @@ using osu.Framework.Utils;
using osu.Game.Graphics.Containers.Markdown;
using osu.Game.Overlays;
using osu.Game.Overlays.Wiki.Markdown;
using osu.Game.Users.Drawables;
namespace osu.Game.Tests.Visual.Online
{
@ -197,6 +198,7 @@ Line after image";
markdownContainer.CurrentPath = @"https://dev.ppy.sh";
markdownContainer.Text = "::{flag=\"AU\"}:: ::{flag=\"ZZ\"}::";
});
AddAssert("Two flags visible", () => markdownContainer.ChildrenOfType<DrawableFlag>().Count(), () => Is.EqualTo(2));
}
[Test]