This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-markdown-cil/src/MfGames.Markdown.Gemtext.Tests/ImageLinkTests.cs

29 lines
685 B
C#

using MfGames.Markdown.Gemtext;
using Xunit;
namespace MfGames.Markdown.Gemini.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);
}
}
}