TestSceneWikiMarkdownContainer: Add visual test for inline and fenced code syntax

This commit is contained in:
Jai Sharma 2023-01-24 00:51:40 +00:00
parent f067a84631
commit 2454eb8cd9
1 changed files with 24 additions and 0 deletions

View File

@ -270,6 +270,30 @@ public void TestFootnotes()
});
}
[Test]
public void TestCodeSyntax()
{
AddStep("set content", () =>
{
markdownContainer.Text = @"
This is a paragraph containing `inline code` synatax.
Oh wow I do love the `WikiMarkdownContainer`, it is very cool!
This is a line before the fenced code block:
```csharp
public class WikiMarkdownContainer : MarkdownContainer
{
public WikiMarkdownContainer()
{
this.foo = bar;
}
}
```
This is a line after the fenced code block!
";
});
}
private partial class TestMarkdownContainer : WikiMarkdownContainer
{
public LinkInline Link;