mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-15 21:51:57 +00:00
Add tests for checking that ArgumentOutOfRangeException doesn't occur on invalid input md string (#275)
This commit is contained in:
BIN
src/Markdig.Tests/ArgumentOutOfRangeException.md
Normal file
BIN
src/Markdig.Tests/ArgumentOutOfRangeException.md
Normal file
Binary file not shown.
@@ -76,6 +76,9 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<Content Include="ArgumentOutOfRangeException.md">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="hang.md">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
||||
@@ -27,6 +27,13 @@ namespace Markdig.Tests
|
||||
TestSpec(input, "<p>9&ddr;&*&ddr;&de<64><65>__</p>");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestInvalidCharacterHandling()
|
||||
{
|
||||
var input = File.ReadAllText("ArgumentOutOfRangeException.md");
|
||||
var html = Markdown.ToHtml(input);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestInvalidCodeEscape()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user