public void MarkdownSection_ToMarkdown_SectionAfterZeroEndlines()
        {
            //arrange
            MarkdownSection section      = new MarkdownSection("Header");
            string          previousText = "The quick brown fox";
            //act
            string text = section.ToMarkdownString(previousText);

            //assert
            Assert.AreEqual("\n\n# Header\n\n", text);
        }
        public void MarkdownSection_ToMarkdown_SectionAfterJustOneEndline()
        {
            //arrange
            MarkdownSection section      = new MarkdownSection("Header");
            string          previousText = "\n";
            //act
            string text = section.ToMarkdownString(previousText);

            //assert
            Assert.AreEqual("# Header\n\n", text);
        }
        public void MarkdownSection_ToMarkdown_TextThenSection()
        {
            //arrange
            MarkdownSection sectionA = new MarkdownSection("A");
            MarkdownText    text     = new MarkdownText("Text");

            sectionA.Add(text);
            MarkdownSection sectionB = sectionA.AddSection("B");
            //act
            string result = sectionA.ToMarkdownString();

            //assert
            Assert.AreEqual("# A\n\nText\n\n## B\n\n", result);
        }