mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 08:22:56 +08:00
Add test case covering failure
This commit is contained in:
parent
db1380a346
commit
12aa2e96db
@ -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
|
private partial class TestMarkdownContainer : WikiMarkdownContainer
|
||||||
{
|
{
|
||||||
public LinkInline Link;
|
public LinkInline Link;
|
||||||
|
Loading…
Reference in New Issue
Block a user