public void When1LineSentenceContainsMultipleMarkup_ExpectEachWordWithRightTags()
        {
            //arrange
            MartinDown markdown = new MartinDown();

            //act
            var result = markdown.Transform("The *quick* **brown** fox ***jumps*** over the lazy dog.");

            //assert
            Assert.AreEqual("The <em>quick</em> <strong>brown</strong> fox <strong><em>jumps</em></strong> over the lazy dog.", result);
        }
        public void WhenInputHasNoMarkDown_ExpectSameOutput()
        {
            //arrange
            MartinDown markdown = new MartinDown();

            //act
            var result = markdown.Transform("Hello World!");

            //assert
            Assert.AreEqual("Hello World!", result);
        }
        public void WhenSentenceHasExtraWhiteSpaceBetweenWords_ExpectExtraWhiteSpace()
        {
            //arrange
            MartinDown markdown = new MartinDown();

            //act
            var result = markdown.Transform("Hello  World   !");

            //assert
            Assert.AreEqual("Hello  World   !", result);
        }
        public void WhenSingleWordHasBoldAndItalics_ExpectCorrectHtmlTagOutput()
        {
            //arrange
            MartinDown markdown = new MartinDown();

            //act
            var result = markdown.Transform("***Hello***");

            //assert
            Assert.AreEqual("<strong><em>Hello</em></strong>", result);
        }
        public void WhenInputIsEmpty_ExpectEmptyOutput()
        {
            //arrange
            MartinDown markdown = new MartinDown();

            //act
            var result = markdown.Transform(string.Empty);

            //assert
            Assert.AreEqual(string.Empty, result);
        }
        public void When1LineSentenceContainsTrailingSpaces_ExpectSpacePreserved()
        {
            //arrange
            MartinDown markdown = new MartinDown();

            //act
            var result = markdown.Transform("The quick brown fox jumps over the lazy dog.      ");

            //assert
            Assert.AreEqual("The quick brown fox jumps over the lazy dog.      ", result);
        }
        public void When1LineSentenceContainsMultipleSpacesBetweenWord_ExpectSameOutput()
        {
            //arrange
            MartinDown markdown = new MartinDown();

            //act
            var result = markdown.Transform("The  quick    brown   fox    jumps    over the lazy dog.");

            //assert
            Assert.AreEqual("The  quick    brown   fox    jumps    over the lazy dog.", result);
        }