Esempio n. 1
0
        public static void MarkdownWriter_Write_Link()
        {
            MarkdownWriter mw = CreateWriter();

            const string text  = "LinkText";
            const string url   = "LinkUrl";
            const string title = "LinkTitle";

            MLink link = Link(text + Chars, url + CharsWithoutSpaces, title + Chars);

            string expected = $"[{text + CharsSquareBracketsBacktickLessThanEscaped}]({url + CharsWithoutSpacesParenthesesEscaped} \"{title + CharsDoubleQuoteEscaped}\")";

            Assert.Equal(expected, mw.Write2(link).ToStringAndClear());
        }