add test for image block and inline image

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-23 17:22:31 +07:00
parent b78ec8307d
commit b8a5b5aaf8
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -120,6 +120,29 @@ needs_cleanup: true
});
}
[Test]
public void TestBlockImage()
{
AddStep("Add paragraph with block image", () =>
{
markdownContainer.CurrentPath = "Interface/";
markdownContainer.Text = @"Line before image
![play menu](img/play-menu.jpg ""Main Menu in osu!"")
Line after image";
});
}
[Test]
public void TestInlineImage()
{
AddStep("Add inline image", () =>
{
markdownContainer.Text = "![osu! mode icon](/wiki/shared/mode/osu.png) osu!";
});
}
private class TestMarkdownContainer : WikiMarkdownContainer
{
public LinkInline Link;