1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Add test case covering failure

This commit is contained in:
Bartłomiej Dach 2022-12-19 21:21:18 +01:00
parent db1380a346
commit 12aa2e96db
No known key found for this signature in database

View File

@ -199,6 +199,16 @@ Line after image";
});
}
[Test]
public void TestHeadingWithIdAttribute()
{
AddStep("Add heading with ID", () =>
{
markdownContainer.Text = "# This is a heading with an ID {#this-is-the-id}";
});
AddAssert("ID not visible", () => markdownContainer.ChildrenOfType<SpriteText>().All(spriteText => spriteText.Text != "{#this-is-the-id}"));
}
private partial class TestMarkdownContainer : WikiMarkdownContainer
{
public LinkInline Link;