public string Transform(string markdown)
        {
            var parser = new DoubleUnderscore(markdown);

            parser.FillEntries();
            return(parser.Transform());
        }
        public void DoNotCountScreenedUnderscores()
        {
            var parser = new DoubleUnderscore(@"\__Hello,\__ world");

            parser.FillEntries();
            parser.Entries.Should().BeEmpty();
            parser.Screens.ShouldAllBeEquivalentTo(new List <int> {
                0, 9
            });
        }
        public void CountCorrectUndercores()
        {
            var parser = new DoubleUnderscore("__Hello, world__");

            parser.FillEntries();
            parser.Entries.ShouldAllBeEquivalentTo(new Dictionary <int, TagType>
            {
                { 0, TagType.Opening },
                { 14, TagType.Closing }
            });
        }
        public void CountTwoPairsInRow()
        {
            var parser = new DoubleUnderscore("__Hello,__ __world__");

            parser.FillEntries();
            parser.Entries.ShouldAllBeEquivalentTo(new Dictionary <int, TagType>
            {
                { 0, TagType.Opening },
                { 8, TagType.Closing },
                { 11, TagType.Opening },
                { 18, TagType.Closing }
            });
        }