public void Test_ConvertMarkdownToHtml_OnBigSample()
        {
            var converter = new MarkdownToHtmlConverter();
            var text = GetSampleMarkdown();
            var expected = GetSampleHtml();

            var actual = converter.ConvertMarkdownToHtml(text);

            Assert.AreEqual(expected, actual);
        }
        public void Test_PerformanceOf_ConvertMarkdownToHtml_OnLongStringOfSameSymbols()
        {
            var converter = new MarkdownToHtmlConverter();
            var text = String.Join("\n\n  \n", Enumerable.Repeat("a", 100000));

            var stopwatch = new Stopwatch();
            stopwatch.Start();
            converter.ConvertMarkdownToHtml(text);
            stopwatch.Stop();

            Assert.LessOrEqual(stopwatch.ElapsedMilliseconds, 1500);
        }
        public void Test_PerformanceOf_ConvertMarkdownToHtml_OnLongString()
        {
            var converter = new MarkdownToHtmlConverter();
            var text = String.Join("\n\n  \n", Enumerable.Repeat("_bold __coursive___ `c_ode`", 100000));

            var stopwatch = new Stopwatch();
            stopwatch.Start();
            converter.ConvertMarkdownToHtml(text);
            stopwatch.Stop();

            Assert.LessOrEqual(stopwatch.ElapsedMilliseconds, 8000);
        }