27 lines
654 B
C#
27 lines
654 B
C#
using Xunit;
|
|
|
|
namespace MfGames.Markdown.Gemtext.Tests
|
|
{
|
|
public class ImageLinkTests
|
|
{
|
|
[Fact]
|
|
public void NamedImageLink()
|
|
{
|
|
string input = "![test](image.jpg)";
|
|
string expected = "=> image.jpg test";
|
|
string actual = MarkdownGemtext.ToGemtext(input);
|
|
|
|
Assert.Equal(expected, actual);
|
|
}
|
|
|
|
[Fact]
|
|
public void SimpleImageLink()
|
|
{
|
|
string input = "![](image.jpg)";
|
|
string expected = "=> image.jpg";
|
|
string actual = MarkdownGemtext.ToGemtext(input);
|
|
|
|
Assert.Equal(expected, actual);
|
|
}
|
|
}
|
|
}
|